Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi Guys,
Newbie here,
I would like to know if is it possible to use SELECTEDVALUE function in an IF STATEMENT as a measure.
For Example.
I want to use different MEASURE depending on the SELECTEDVALUE of a slicer.
Thank you so much for your help ! 🙂
Solved! Go to Solution.
Hi @Anonymous
Yes, you can do that. You'll probably want to use SWITCH though, to avoid lots of nested IFs.
Something like
Selected Measure =
SWITCH(
SELECTEDVALUE(Table[Slicer Column]),
"Slicer Value 1", [Measure 1],
"Slicer Value 2", [Measure 2],
..... etc
)
Hi @Anonymous
Yes, you can do that. You'll probably want to use SWITCH though, to avoid lots of nested IFs.
Something like
Selected Measure =
SWITCH(
SELECTEDVALUE(Table[Slicer Column]),
"Slicer Value 1", [Measure 1],
"Slicer Value 2", [Measure 2],
..... etc
)
You certainly can!
Have a look at this example:
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
97 | |
84 | |
67 | |
59 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |