Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi everybody,
I'm probably doing something because I cannot get SELECTEDVALUE to work.
I have two columns: "CURRENT PLAN" and "PLAN". Both columns have 3 different values: "Plan 2018", "Plan 2019" and "Plan 2020".
I'd like to add a slicer for "CURRENT PLAN" and with that slicer only one option of the three can be selected. Then I have a measure displaying the units of that selected plan. The measure formula looks like this:
Current Plan Units = VAR SlicerValue = SELECTEDVALUE('Table Plans'[CURRENT PLAN]) RETURN SUMX(FILTER('Table Plans','Table Plans'[PLAN]=SlicerValue),'Table Plans'[Units])/1000SELECTEDVALUE seems to always go the FALSE route. I don't know why...
Thank you already!
Christoph
Solved! Go to Solution.
hi, @ChristophEmrich
First, for SELECTEDVALUE,
SELECTEDVALUE(<columnName>[, <alternateResult>])
| Term | Definition |
|---|---|
| columnName | The name of an existing column, using standard DAX syntax. It cannot be an expression. |
| alternateResult | (Optional) The value returned when the context for columnName has been filtered down to zero or more than one distinct value. When not provided, the default value is BLANK(). |
You couldn't select more than one value in slicer.
Second, from your formula we know that all the column are in the same table, if there is something wrong in here.
If you still have the problem, please share some sample data and your expected output.
Best Regards,
Lin
I don't know who selected the reply as solution, it wasn't me. It still does not work.
hi, @ChristophEmrich
First, for SELECTEDVALUE,
SELECTEDVALUE(<columnName>[, <alternateResult>])
| Term | Definition |
|---|---|
| columnName | The name of an existing column, using standard DAX syntax. It cannot be an expression. |
| alternateResult | (Optional) The value returned when the context for columnName has been filtered down to zero or more than one distinct value. When not provided, the default value is BLANK(). |
You couldn't select more than one value in slicer.
Second, from your formula we know that all the column are in the same table, if there is something wrong in here.
If you still have the problem, please share some sample data and your expected output.
Best Regards,
Lin
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 46 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 69 | |
| 32 | |
| 27 | |
| 26 |