The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Greetings,
I have a very simple question, but have had difficulty framing the search terms. Any guidance would be appreciated!
In creating a measure, I have a simple logical test on the value of a field - e.g. [Status]. I'd like to write it so that if [Status] does not equal "Approved" return blank, but otherwise start a more tedious calculation with multiple variables. Is there a way to do this to make the measure more efficient?
Thank you.
Solved! Go to Solution.
New Measure =
VAR _Check = MAX('Table'[Status])
RETURN
SWITCH(
TRUE(),
_Check <> "Approved", BLANK(),
<Do Something Else>
)
New Measure =
VAR _Check = MAX('Table'[Status])
RETURN
SWITCH(
TRUE(),
_Check <> "Approved", BLANK(),
<Do Something Else>
)
Awesome, thanks!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
119 | |
87 | |
75 | |
55 | |
44 |
User | Count |
---|---|
135 | |
125 | |
78 | |
64 | |
63 |