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! Request now

Reply
Anonymous
Not applicable

IF statement output in DAX

Hi All,

I have a dax query like below

Performace Status = IF((ISBLANK([Actual TD (Today)]) || ISBLANK([ Planned (Study) (EOM)])),0,1) 
The above metric returns output correctly, but the problem comes in when I add dimensions.
EG:
When I add country getting correct output
CountryPerformance Status
US1

 

When i add product getting all product regardless of the fact output Which should return only one product A1, facing this issue when only with this metric since it uses if condition, where result returned for the note else if value too.. when i add the direct metric (Actual TD (Today) & Planned TD (Today)) used in this expression am getting i

Expected Output  
CountryProductPerformance Status
USA1

 

Returned Output  
CountryProductPerformance Status
USA1
USA10

 

5 REPLIES 5
Anonymous
Not applicable

ADd meausre in Visual level filter and add condition MEasure is not 0.

Anonymous
Not applicable

Its not about restricting the data, when i join the fact table with the country table, for US, It returns only one product A, but when i use the if statement it returns true correctly, but when it was false it returns all the values from the product table. So am trying to get the output only for the matched values of dimension table with fact table

Anonymous
Not applicable

what is your exact requirement. Please be clear.

Greg_Deckler
Community Champion
Community Champion

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490.

 

Is that a measure?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Yes it is a measure

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.