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
brown1001
New Member

How do I combine duplicate rows in Power Query?

Hello. I have 1369 entries for 'Cloud' and another 1578 entries for 'Cloud' in my treemap, as circled below in red. They're the same thing and I want to combine them. How do I combine these two in Power Query so that when I go back to my treemap, I see that 'Cloud' has 2947 entries? I'm a noob to this so I'm not sure how to do this transformation. Thank you.

Screen Shot 2022-09-14 at 9.35.50 AM.pngScreen Shot 2022-09-14 at 10.59.15 AM.png

1 ACCEPTED SOLUTION

JadhavVarsha_13_0-1663170602873.png

Not sure, but you can try these options - Clean or Trim from transform options by right clicking on the column

View solution in original post

7 REPLIES 7

If you go to View option from Power Query Editor, You will see Data Preview options like Monospaced, show whitespace - show whitespace is something which will show whitespace or newline characters if any 

Hello !

 

You can check data proofing options, there might be some space, newline or blankspaces added to column Value, you can try using remove blank or from Split Column Option. 

 

I don't understand. What data proofing options? There are no spaces or blankspaces in 'Cloud'. How do I know if there's a newline added? None of this makes sense.

f you go to View option from Power Query Editor, You will see Data Preview options like Monospaced, show whitespace - show whitespace is something which will show whitespace or newline characters if any 

Ok. I got rid of the whitespaces but it didn't change anything. I still have 2 separate 'Cloud' entries.

JadhavVarsha_13_0-1663170602873.png

Not sure, but you can try these options - Clean or Trim from transform options by right clicking on the column

Thank you so much! That worked.

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.