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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
troyhimes
Resolver I
Resolver I

Possible to Unpivot multiple Gantt Charts?

Ok, well not actual Gantt charts but Excel tables created to function like Gantt charts.  The input files are separate Excel files containing a schedule for each month saved to a single sharepoint location.  I have multiple years worth of data in this same format.  The goal is to unpivot the date columns data, which of course can be done to each individual file, but is there any possible way to do it in bulk to multiple months?  The link is to a folder with 2 months worth of data. I want to keep those rows where the 'SUM PLAN' rows have a value since they are the activities that are scheduled in that given month. 

 

Monthly Schedules 

 

2022-03-03_18-30-39.jpg

1 ACCEPTED SOLUTION

See attached for the general approach.  One function to read an Excel file, and another query that lists files in a folder and then calls the above function on all of them.

View solution in original post

4 REPLIES 4
troyhimes
Resolver I
Resolver I

Thanks @lbendlin !  I used the same approach that you suggested and found this tutorial helpful (Unpivot and Combine Data from Multiple Tables using Power Query )

lbendlin
Super User
Super User

Thank you for the source files.  Unfortunately they are not consistent. The column "RTP" is missing in one of the samples. Files must have the same structure before the Unpivot point.

@lbendlin , 2 columns in Feb were missing the headers, they are there now

See attached for the general approach.  One function to read an Excel file, and another query that lists files in a folder and then calls the above function on all of them.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors