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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.