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
jtomczyk
Helper I
Helper I

merge duplicate power query

Hallo,

I have two sources of data. I have used append queries to join them. As a result for some of them I have duplicate rows.

jtomczyk_0-1647592014669.png

I would like to have only one line for each project code and to take the values from the second line if the value on the first one is null

Any idea how to do that?

2 ACCEPTED SOLUTIONS
davehus
Memorable Member
Memorable Member

Hi @jtomczyk, You could use a group by method in Powerquey and try using Max to return the values you need. 

View solution in original post

v-xiaotang
Community Support
Community Support

Hi @jtomczyk 

after you append queries, then 

(1) replace blank cells with null

vxiaotang_0-1647934294030.png

(2) fill down

(3) fill up

(4) remove duplicate rows.

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-xiaotang
Community Support
Community Support

Hi @jtomczyk 

after you append queries, then 

(1) replace blank cells with null

vxiaotang_0-1647934294030.png

(2) fill down

(3) fill up

(4) remove duplicate rows.

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

davehus
Memorable Member
Memorable Member

Hi @jtomczyk, You could use a group by method in Powerquey and try using Max to return the values you need. 

jtomczyk_0-1647606787243.png

After grouping I have this

jtomczyk_1-1647606896818.png

 

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.