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
S0Fr33
Frequent Visitor

Merge Tables Without Matching Data

From a Support Ticket system, due to limitations with API calls,  I have multiple tables with the same column names but different data. The tables are separated by date ranges.

 

I need to merge these so I can report on different time periods and trends. In my research, I only see merging options where you have matching data. Any ideas are welcome!

5 REPLIES 5
Jimmy801
Community Champion
Community Champion

Hello

were you able to solve the problem with any reply given?

If so, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

All the best

Jimmy

Greg_Deckler
Community Champion
Community Champion

So you have something like:

 

Table1:  col1,col2,col3

Table2:  col1,col2,col3

 

And you want:

col1,col2,col3,col1a,col2a,col3a

 

Or do you want to Append the tables together?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

I'd like to append the tables together.

 

P.S. - I read your article on how to get your question answered quickly and am providing a link to 2 sample tables with anonymized data.

 

https://arria.sharefile.com/share/view/s6ff1611a4504751a

Hi @S0Fr33 

When opening the link, it shows "no available".

We often upload file to Onedrive and share the link here.

Or you can show some pictures here.

 

If Jimmy801's solution helps, could you kindly accept it as a solution so to close this case?

If not, feel free to ask me.

 

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

Jimmy801
Community Champion
Community Champion

Hello @S0Fr33 

 

add a prefix to every column (example table name) and combine the tables afterwards. I've prepared a very basic code example where you see how this could work

let
	SourceTableA = #table
	(
		{"COLA","COL2"},
		{
			{"a","c"},	{"b","d"},	{"e","f"}
		}
	),
    SourceTableB = #table
	(
		{"COLA","COL2"},
		{
			{"a","c"},	{"b","d"},	{"e","f"}
		}
	),
    NewColumnNamesTableA = List.Transform(Table.ColumnNames(SourceTableA),each "TableA"&_),
    NewColumnNamesTableB = List.Transform(Table.ColumnNames(SourceTableB),each "TableB"&_),
    RenameTableA = Table.RenameColumns(SourceTableA,List.Zip({Table.ColumnNames(SourceTableA), NewColumnNamesTableA})),
    RenameTableB = Table.RenameColumns(SourceTableB,List.Zip({Table.ColumnNames(SourceTableB), NewColumnNamesTableB})),
    Combine = Table.Combine({RenameTableA, RenameTableB})
in
	Combine

Copy paste this code to the advanced editor in a new blank query to see how the solution works. If this solution fits your need, copy and past a part of it and implement it in your query.

If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Kudoed Authors