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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

filter dax > 40 not working, why?

I am troubleshooting why my code doesnt work and I notice this:

 If i put > 40

ovonel_0-1643650422620.png

 

 

doesnt work!!!

 

 

 

 

 

 

I need to write > 41 to filter out those "40" , why is this??

ovonel_1-1643650455910.png

 

 

 

This is the source from sql server (it adds to 40, not more!)

ovonel_2-1643650502222.png

 

 

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

It's possible that floating-point math is making it very slightly larger than 40. To check you can try rounding [summ] before comparison.

 

Try writing this instead to round to two decimal places:

ROUND ( [summ], 2 ) > 40

 

View solution in original post

1 REPLY 1
AlexisOlson
Super User
Super User

It's possible that floating-point math is making it very slightly larger than 40. To check you can try rounding [summ] before comparison.

 

Try writing this instead to round to two decimal places:

ROUND ( [summ], 2 ) > 40

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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