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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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