Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
chinthada
Helper I
Helper I

DAX Filter - greater-than or equal is not working

Hello Experts,

 

I have data set like below

TypeOfCallYearQuarterAttnTimeNew
Urgent 2020Q16.2
Non-Urgent 2020Q39.1
Urgent 2020Q218
Non-Urgent 2020Q120

 

I am writing a Dax measure using filters for AttnTimeNew.

com-test = CALCULATE(COUNTA('VW_Water'[CC_MASTER__ID]), FILTER('VW_Water','VW_Water'[AttnTimeNew]>=18)).

 

For this filter, it should give the result of "2" as I'm using greater than or equal operators. But it gives results as "1". If I change above Dax query as 17,  FILTER('VW_Water','VW_Water'[AttnTimeNew]>=17), then it will give the result of "2". 

 

The source column is in decimal number.

 AttnTimeNew.PNG

 

If I change it to a whole number I can see the results correctly. Hope you will help to resolve this issue.

 

thanks

 

 

 

 

1 ACCEPTED SOLUTION
smearp
Microsoft Employee
Microsoft Employee

Hello-

 

I recreated your table (I added a column called CC_MASTER_ID, since that's what your measure is counting):Table.png

For the measure, I copied your measure:

Measure.png

and for the result, I get the expected "2".

output.png

View solution in original post

3 REPLIES 3
Anonymous
Not applicable
smearp
Microsoft Employee
Microsoft Employee

Hello-

 

I recreated your table (I added a column called CC_MASTER_ID, since that's what your measure is counting):Table.png

For the measure, I copied your measure:

Measure.png

and for the result, I get the expected "2".

output.png

It seems this was data related problem...

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.