Forum Discussion
Creating a dynamic text field in DAX
Anonymous , You can enable Q&A . and post that you can add the measures to your text box, you will get a + value option
You can have measure like selectedvalue(Table[Country]) , Sum(Table[Sales]) etc and use that
Thanks for the reply.
I'm not looking to change a field in a text box, rather a text column in the dataset.
For example, the table below. I've created a disconnected table with only the text values "Project", "Continent", "Sub Region", and "Country". I have a slicer on the dashboard that allows the user to select one of these 4 text values. What I'm trying to do is have a text field that changes based on what the user selects in the slicer using a SWITCH statement. E.g. SWITCH(SELECTEDVALUE([Disconnected Table Field]), "Project", [Project], "Continent", [Continent], ...)