Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi, I am completely tearing my hair out here. I have no idea why this doesn't work.
Basically, I am trying to select a column based on a selected value (which is in turn, chosen via slicer) using a switch statement. Here is my DAX code that DOES NOT WORK (Table & column names edited for anonymity):
Hello
Did u get the solution for the above?
I am also facing the same problem..if you have a solution ..kindly share
Are you trying to dynamically select a column to display in a visual? If so, field parameters are a great option:
https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters
Or, are you trying to dynamically select a column's value for further use in your measure? It's worth noting that a calculated column can't recognize a slicer selection, so a measure is the only option.
Proud to be a Super User!
I am trying to dynamically select a column to display in a visual. I clicked your link but for me there is no "Preview Features" in the options menu, so I can't do it.
Is there a way to do this with a measure instead of a calculated column? I want all the rows to display in a visual, not an aggregation.
What version of Power BI Desktop do you have? If you don't see "Field parameters" below, upgrade Power BI Desktop:
Proud to be a Super User!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
7 | |
5 | |
4 | |
3 |
User | Count |
---|---|
12 | |
11 | |
9 | |
9 | |
8 |