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
Dunner2020
Post Prodigy
Post Prodigy

Considering only non-blank measure in if condition

Hi there,

 

I have a measure that compared four measures with numbers and produces the output in the form of "Yes" or "No". The measure looks like as follow:

 

final measure = 

IF([measure1] >= 4 && [measure2]>=10 && [measure3]>=14 && [measure4] >= 14,"Yes","No")
 
Now the issue is that not all 4 measures contain values at the same time. Either 2 or 3 measures have values and the remaining are blank. So I want to consider only those measures in if  condition that has values and ignores those who are blank. Is there any way of doing that in Power BI? 
1 ACCEPTED SOLUTION
mahoneypat
Microsoft Employee
Microsoft Employee

Why not just add 0 to each measure so they are never blank, and they never satisfy their condition.

final measure = 

IF([measure1] +0>= 4 && [measure2]+0>=10 && [measure3]+0>=14 && [measure4] +0>= 14,"Yes","No")
 
Regards,
Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

3 REPLIES 3
mahoneypat
Microsoft Employee
Microsoft Employee

Why not just add 0 to each measure so they are never blank, and they never satisfy their condition.

final measure = 

IF([measure1] +0>= 4 && [measure2]+0>=10 && [measure3]+0>=14 && [measure4] +0>= 14,"Yes","No")
 
Regards,
Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Dunner2020
Post Prodigy
Post Prodigy

@Anonymous , I already tried that and it did not work. Moreover, I want to setup blank measure in such away that if measure is blank then it should not be the part of if condition.

Anonymous
Not applicable

Hi @Dunner2020 - Can you try measure like below:

final measure = 

IF(NOT ISBLANK([measure1]) >= 4 && NOT ISBLANK([measure2])>=10 && NOT ISBLANK([measure3])>=14 && NOT ISBLANK([measure4]) >= 14,"Yes","No")

 

Thanks,

-Namish B

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