Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
19 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
25 | |
10 | |
10 | |
9 | |
6 |