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
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
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.

Top Solution Authors
Top Kudoed Authors