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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
markjankowski
Frequent Visitor

Dax & allselected

I have the following statement but syntax states incorrect?

 

M2A = if(isblank(ALLSELECTED(W2E_Master[Value],0,W2E_Master[Value]))))
5 REPLIES 5
Anonymous
Not applicable

HI @markjankowski,

I'm glad to hear you found and share the solution formulas here, I think they will help other who has the same requirements.
Regards,

Xiaoxin Sheng

markjankowski
Frequent Visitor

i think this will work...

 

 

M2A = if(isblank(SELECTEDVALUE(W2E_Master[Value])),0,[Measure])
markjankowski
Frequent Visitor

example.jpg

ok, i tried a few variations and tested with this one against the database it it works in every case on the screen...

 

M2A = IF(SELECTEDVALUE(W2E_Master[Value])=BLANK(),0,MAX(W2E_Master[Value]))

solution.jpg

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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