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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Carousel June 2024

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

2
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.