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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
afrutos
Resolver I
Resolver I

If not working

Hello everyone, 
I have this table, with my measures
and everything is working fine except the if function,
I would like to have: if my column "ComprobacioD" is 0 then is completed otherwise is Incomplete.

But it's not working.
Can anybody help me?
Thanks

 

afrutos_0-1645697859399.png

 

1 ACCEPTED SOLUTION
AllisonKennedy
Super User
Super User

@afrutos  What's the measure for comprobacioD? Is it possible that it's not exactly 0? Try changing your if to 

 

<0.00000001 and see if that helps, then continue troubleshooting from there.


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

View solution in original post

3 REPLIES 3
AllisonKennedy
Super User
Super User

@afrutos  What's the measure for comprobacioD? Is it possible that it's not exactly 0? Try changing your if to 

 

<0.00000001 and see if that helps, then continue troubleshooting from there.


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Medida = IF(( [ComprobacioD]>= 0 && [ComprobacioD]< 0.0000000000001 ) , "completada","incompleta")
 
Now it's working !!
 
thank you!
 

the is the measure for ComprobacioD: 

ComprobacioD = [SUM DIR] - [SUM % Distribucion Obra D]
 

This is working a little bit better but then it should be between 0 and <0.00000001

afrutos_0-1645699279159.png

I'm a little bit lost

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors