Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 216047

The data type time works with greater than and equal but are incompatible in the less than operator?

$
0
0

Hi,

 

i'm having problem with not being able to use the less than operator when counting rows and the selected column is in the TIME-format.

HH:mm:ss

 

> Works fine:

Measure = COUNTAX(FILTER('KPI';'KPI'[Created]>TIMEVALUE("17:00:00"));'KPI'[KPI])

 

= Works fine:

Measure = COUNTAX(FILTER('KPI';'KPI'[Created]=TIMEVALUE("17:00:00"));'KPI'[KPI])

 

< Does not work:

Measure = COUNTAX(FILTER('KPI';'KPI'[Created]<TIMEVALUE("17:00:00"));'KPI'[KPI])

 

Error message:

The data types datetime and time are incompatible in the less than operator.. The exception was raised by the IDbCommand interface.

 

Does anyone know how I can get the less than to work in the same manner as greater than or equal?

 

Regards,

Peter


Viewing all articles
Browse latest Browse all 216047

Trending Articles