Jump to content
We've recently updated our Privacy Statement, available here ×

carolinapj

Members
  • Posts

    1
  • Joined

  • Last visited

carolinapj's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Hi! I have an ad-hoc view with a simple table with Drivers and Number of services in a period of time. The number of services is a metric calculated as the Sum of a field. In database the field is always 1. The problem comes when filtering by that metric, because the SQL generated is filtering by the field and not by the sum of the field. So, if we put in the filter any value diferent from 1, the report displays no data. This is the SQL select `Nombre conductor`,sum(`Numero partes`) from wtoc where `Fecha` between timestamp('2020-05-01 00:00:00') and timestamp('2020-05-31 00:00:00') and `Numero partes` > 100 group by `Nombre conductor` And I need something like this: select `Nombre conductor`,sum(`Numero partes`) from wtoc where `Fecha` between timestamp('2020-05-01 00:00:00') and timestamp('2020-05-31 00:00:00') group by `Nombre conductor` having sum(`Numero partes`) > 100 ¿Could anybody help me? Thanks!
×
×
  • Create New...