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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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.
amitchandak
Super User
Super User

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.