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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
jja
Helper III
Helper III

dynamic column name in a table

Hi

is there a way to set a dynamic column name of a table based on slice selection?

 

lets say i have columns with names Sales this year(it is a measure), Sales last year(also a measure)

I have a slicer and what i want is to select 2020 then insted of Sales this year i want to show "Sales 2020" and instead of Sales last year i want to show "Sales 2019"

 

1 ACCEPTED SOLUTION

Hi @jja 

 

Kindly check below attached.

Please note that we can't change the column name based on the slicer, I'd suggest you use the Matrix to be a workaround.

 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

View solution in original post

7 REPLIES 7
v-diye-msft
Community Support
Community Support

Hi @jja 

 

Sure, it's possible.

 

Check my dummy pbix attached.

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Hi @v-diye-msft 

It is not about the dynamic data in a column - it is about dynamic column name

Hi @jja 

 

Kindly check below attached.

Please note that we can't change the column name based on the slicer, I'd suggest you use the Matrix to be a workaround.

 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Hi @jja 

 

Do you mean to keep the data unchanged by just change the column name dynamically??

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Hi @v-diye-msft 

 

no data in column will change according slicer selection and according selection also column name has to change

 

if i select year 2019 then column name is 2019 and data in column is 2019

working on it.

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors