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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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
Anonymous
Not applicable

HI @Rbrt09090,

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

Xiaoxin Sheng

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.