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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.