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
Anonymous
Not applicable

Column names change automatically

Hello,
I'm working on a simple forecast data to produce some visualization. I got to the point where I have the Data in the below format to create my visualization (Promoting the first row as header)

davidGRM_0-1683039441627.png

 

The problem I find is the following month, when I pull a new report, all the columns 5 to 10 names will change as the month has progressed, and my visualization breaks, having to remove the first month, and add the new month (with all the correspondent formating etc)

 

How can I setup my visualization to use Column5 to Column10 as part of the Dataset, but in my visualization, display the column title with the correct name of the month

 

Regards

David

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , based on what I got.

Do not rename, Use the first row as the header.

 

Select all the columns other than a month and use unpivot other columns and then use the data, it should work better

Unpivot Data(Power Query): https://youtu.be/2HjkBtxSM0g

Power Query Table.Unpivot, Table.UnpivotOtherColumns: https://youtu.be/0FEGEAz9UMw

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thanks, I never though about that trick.
I now need to format a bit my visuals but I see the potential and it solves all my problems.

 

Thanks

amitchandak
Super User
Super User

@Anonymous , based on what I got.

Do not rename, Use the first row as the header.

 

Select all the columns other than a month and use unpivot other columns and then use the data, it should work better

Unpivot Data(Power Query): https://youtu.be/2HjkBtxSM0g

Power Query Table.Unpivot, Table.UnpivotOtherColumns: https://youtu.be/0FEGEAz9UMw

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.