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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
RobGer
Frequent Visitor

Append two or more Tables with different column names quarterly

Dear Colleagues,

 

I have the following Issue when I try to append more than one Table together in a single Query.

A little to my data:

I become each quarter 4 Excel Tables with the following format (example):

 

Product TitelJanuaryFebruaryMarchTotal
Product A12141541
Total12141541

 

The Month columns would then be pivoted, and become a Month and Value Columns.

 

The thing about these tables is, the titel from column A changes from Excel to Excel. Whenever I try to combine the tables, I get back the first table and then an "Error" Row at the end of the table.

 

I receive the Data each quarter in a SharePoint Folder. I have been naming the excels with the following format: YearMonth_ProductCategory
Where YearMonth is the current Year + Last Year Month of the Quarter + 1. The Product Category will be needed later as each product in the excels will have a parent Category with the Name of the Product Category (in the file name).

 

So my questions really are: 

 

How can I combine the 4 tables, so that the column names don't affect the merged query (therefore not getting an error)?

 

How would it be easier to automate, data tables for each quarter, or an ever expanding table, updated each quarter horizontally adding the months?

I uploaded the input data on we transfer as well as the expected result: https://we.tl/t-JlLTGM6T5s

Thank you in advance!

Regards,

Robert

1 REPLY 1
mussaenda
Super User
Super User

Hi @RobGer ,

 

rename you column field using the column position instead of its name so it will be dynamic. then do the steps you need

Check this link:

Renaming A Column In Power Query Based On Position — ehansalytics

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.