Reply
avatar user
Anonymous
Not applicable
Partially syndicated - Outbound

Merge or Append Queries?

I have multiple queries that have all the same columns except for the values column. I am wanting to combine the value columns from the different queries into one query and of course have my DIM table referencing that. (This is what I am assuming is correct)

 

I have tried merging (and tried many different modifications of merging) but end up having duplicate rows. 

 

When I try to Append, I end up getting null values in the value column and when I filter the column to eliminate the null, the other value column then shows null.

 

I am very confused as I do not believe that this should be a difficult task but am having a lot of trouble getting past this.

 

I have attached my power bi file below, hopefully I have attached it right as this is my first time sharing it. Thanks!

 

Power BI File 

1 ACCEPTED SOLUTION

Syndicated - Outbound

@Anonymous - You can merge on multiple columns using Ctrl or Shift to select



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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

Syndicated - Outbound

@Anonymous , do you have correct keys identified join. Do you need a concatenated columns for that ?

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

https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Greg_Deckler
Super User
Super User

Syndicated - Outbound

@Anonymous - Can't access file. Generally this sounds like an Append. Are you sure that your column names, including the value column are all identically named? If you Append with all the same column names, you should not end up with 2 values columns.



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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
avatar user
Anonymous
Not applicable

Syndicated - Outbound

I made the column names identical and you are correct, I did not end up with an additional value column. However, I am thinking that I am going to need to merge instead if I am aiming to add additional columns that contain the values of my other queries. When I merge and match the Dept-ID using Left Outer Join and expand only the Value column, my Dept-ID and Department rows duplicate. Here is a snip just so you have an idea of what I am looking at.

@Greg_Deckler 

 

watkinb_0-1599226770146.png

 

Syndicated - Outbound

@Anonymous - You can merge on multiple columns using Ctrl or Shift to select



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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
avatar user
Anonymous
Not applicable

Syndicated - Outbound

This is correct how it is in the snip, but once i merge, those two columns (Dept-ID and Department) go on for hundreds of rows. Also, my weeks columns has 'Week 1' for 52 rows for the same Dept-ID and Department.

@Greg_Deckler 

avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)