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! Learn more

Reply
LP2803
Responsive Resident
Responsive Resident

Combine data from two queries based on column headers

Hi Team,

 

I have two datasets which we are getting from API calls. Both have almost similar data but columns are not in order.

 

For example, Query1 fetches 10 columns & Query 2 fetches 9 columns with headers below. 

 

Column NumberQuery 1 Column HeadersQuery 2 Column Headers
1Column1._indexColumn1._index
2Column1._typeColumn1._type
3Column1._idColumn1._id
4Column1._scoreColumn1._score
5Column1._source.CallRateColumn1._source.Audio.Incoming.PacketLoss
6Column1._source.deviceTypeColumn1._source.Video.Outgoing.PacketLossPercent
7Column1._source.DaysAgoColumn1._source.Video.Incoming.MaxJitter
8Column1._source.EncryptionTypeColumn1._source.videoPacketLossPercentage
9Column1._source.Audio.Incoming.PacketLossColumn1._source.DisconnectCauseType
10Column1._source.Video.Outgoing.PacketLossPercent 

 

Now, when i try to append these two queries, the columns from query 2 are not appending to the correct columns in Query 1 as they are not in alphabetic order or any sort of order.

 

How can I manage to get this work?  Kindly help.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@LP2803 , if you can rename the column to be the same, Append will easily do that.

https://radacad.com/append-vs-merge-in-power-bi-and-power-query

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@LP2803 , if you can rename the column to be the same, Append will easily do that.

https://radacad.com/append-vs-merge-in-power-bi-and-power-query

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.