Forum Discussion

ncbshiva's avatar
ncbshiva
Advocate V
7 years ago
Solved

Dynamic Column Name based on Slicer Selection

Hi Team,

 

I have a measure named "Sell-Out" and Year column.

My requirement is to change the column name based on the slicer selection, here the slicer is year column.

 

Example : When i select 2018 in the Year slicer, my Sell-Out column should change as "Sell-Out 2018".

Similarly when i select 2017 in the year slicer , it should dynamically change the column name as "Sell-Out 2017".

 

Can anyone help me how to write DAX to change the column name dynamically ?

 

Thanks

  • ncbshiva,

     

    Try adding the following calculated column and drag it to Columns of a Matrix visual.

    Column =
    "Sell-Out " & Table1[Year]
    

6 Replies