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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Get Data From Excel Pivot Table

Hi folks,

My source is a specific Excel pivot table exported automatically from MS Project visual reports. This pivot table have 2 hierarchical level in columns : Year and Month, as shown here. Unhappily enough, year takes a line, and month a second line.

2020-11-03_1-xl-pivot.jpg

 

When I import it into Power BI Desktop october release, I get columns, but years and months are still separated.

 

2020-11-03_1-xl-pivot-inM.jpg

When I unpivot all months columns, I get a lot of "columnN" in the attribute column such as : 

2020-11-03_1-xl-pivot-inM_p2.jpg

 

What I did is to rename all columnN one by one with the corresponding month,

2020-11-03_170919.jpg

WHat i want is to get this (made with 10 replacements and a filter) :

2020-11-03_1-xl-pivot-inM_p3.jpg

 

How can I do to avoid manual renaming of columns and rename automatically columnN with MonthN (for instance Column6 = Janvier-2021)? I did it manually but this is not suited for repetitive use.

2 REPLIES 2
v-yiruan-msft
Community Support
Community Support

Hi @Anonymous ,

Could you please make some adjustments in the excel file just as below screenshot? Then you can import the excel file into Power BI Desktop after adjusted and make other transformations base on your requirement. Any comment or problem, please feel free to let me know.

Get Data From Excel Pivot Table.JPG

Best Regards
Community Support Team _ Rena Ruan
If this post helps, then please consider Accept it as the solution to help the other members find it more.

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

Please provide sample data in usable format.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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