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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.