March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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:
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
91 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
73 | |
68 |