Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be 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

Reply
Rbrt09090
Regular Visitor

Changing the column name in Dax by the user.

Is there a way that the user can select the column DAX is using in a calculated column? I tried slicers and binding the parameters but i cant get anything to work. 

 

Through slicers a user can select a defined value and a measure can collect the selected value but is seems that data cannot be used as a filter or as a part of a calculated column. I tried that the <logical_test> from the IF statement comes from a slicer selected value but the format is apparently different. 

 

Last i created 4 colums with the different IF statements in it, and create a calculated column with the name of the column that should be used. I put the calculated column as filter page so the data is filtered correct. But no i want that the user can somehow change the column that is used in the calculated column, is this possible?

 

 

Filter =
VAR Field = [Filter01]
return
Field
 
"The [Filter01] is the one i want to be changed by the user, because when i change it manully it works fine".
2 REPLIES 2
v-shex-msft
Community Support
Community Support

HI @Rbrt09090,

Nope, I don't think it is possible to use Dax formula and filters to control calculated field names.
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
amitchandak
Super User
Super User

@Rbrt09090 , If you trying to a slicer value in a calculated column, that is not possible. You need to create a measure in that case

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.