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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Pfin
Frequent Visitor

Power BI - Dynamically Change Column Name

I'm trying to take the data from Tables 1 & 2 to create a report based on selected Make/Model.  The challenge is that each Make/Model has 3 fields for general value adjustments. 

 

In order to keep it consistent, I just call them ValueAdj1, ValueAdj2, and ValueAdj3.  Using Table 2 which provides the actual name of the value adj by Make/Model/ValueAdj, I need to create a report and rename the ValueAdj 1-3 to their ACTUAL name.  The first green report below shows The Toyota Camry.  Then when you change the Make/Model to Nissan Altima, the 3 column headers are renamed to their corresponding ValueAdj header names per the reference table for Nissan Altima.

 

I've researched this in detail and seen multiple possibilities including variables but I still get stuck.  

 

Any ideas?

PowerBI_DynamicColumnNameChange.JPG

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi   @Pfin 

Power BI doesn't allow dynamic renaming of columns in visuals, unlike Excel. A workaround involves creating a table with all potential column name and value combinations and utilizing a slicer to filter the displayed columns based on user preferences. This approach provides a flexible solution, though it's important to note that there isn't a universal fix for this issue. I've discussed this in detail in a vlog.

 

https://www.youtube.com/shorts/CHEneTrZav0 

https://www.youtube.com/watch?v=8U88ZRMsCI8&ab_channel=PowerBITambayan

 

The link to a sample pbix is posted on the video description.

 










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

2 REPLIES 2
danextian
Super User
Super User

Hi   @Pfin 

Power BI doesn't allow dynamic renaming of columns in visuals, unlike Excel. A workaround involves creating a table with all potential column name and value combinations and utilizing a slicer to filter the displayed columns based on user preferences. This approach provides a flexible solution, though it's important to note that there isn't a universal fix for this issue. I've discussed this in detail in a vlog.

 

https://www.youtube.com/shorts/CHEneTrZav0 

https://www.youtube.com/watch?v=8U88ZRMsCI8&ab_channel=PowerBITambayan

 

The link to a sample pbix is posted on the video description.

 










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
v-tianyich-msft
Community Support
Community Support

Hi @Pfin ,

 

This seems to be an unsupported feature. What I can think of is that the table originally had these columns, and then filtered by slicer to filter the table data.

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.