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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
dre_sch
New Member

Measure IF statement not working as expected

Hi, this is my first time posting an issue. I'm not a very experienced user with creating new measures in Power BI and have tried searching all the posts to help resolve my problem without any success.

 

I have a table where I have created measures already for how many days it takes to close a case. I am trying to create another measure with true or false to show whether it was closed within the specified timeframe. However it's returning false for all results.

It should be anything between 0 and 3 = true, blank or greater than 3 = false. I previously had the formula as <=3 and it seemed to work fine except blanks where showing as true.

 

dre_sch_0-1658457049273.png

 

1 ACCEPTED SOLUTION

Hi,

Thank you for your message.

Please replace =0 with ==0

Zero is considered as blank as well, but if you only want to restrict to NUMBER ZERO only but not a Blank, then try writing ==0

 

Thanks.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

4 REPLIES 4
dre_sch
New Member

Sorry, I refreshed again and I am getting the correct results expect thank anything with a blank value is coming up as true and I want this to be false.

Hi,

Thank you for your message.

Please replace =0 with ==0

Zero is considered as blank as well, but if you only want to restrict to NUMBER ZERO only but not a Blank, then try writing ==0

 

Thanks.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
dre_sch
New Member

Hi 

I tried using || instead of && and it just made all the values as true.

Jihwan_Kim
Super User
Super User

Hi,

Please try replacing all of && in your meausre with || 

=> instead of using AND function, please try using OR function. In this case, the measure contains more than 2 of OR condition, so please try using ||


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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