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

Combining Rows based on unique column id

Hi guys i`m trying to combine a sheet in which some cells are completly empty as an example the product name is my unique identifier and i want to make one combined row for each uniqueID" Product name" to collect all the rows together to have one complete infromative row,

PS: rows are exactly the same as belw mentioned " either have value or completly empty"

 

How can i do so in power query specially if the data is being refreshed from sharepoint sourceBefore ( Scattered Data)Before ( Scattered Data)After ( Collected Data)After ( Collected Data)

 

Thanks in Advance.

2 REPLIES 2
Nathaniel_C
Community Champion
Community Champion

Hi @oabd0250 ,

If I understand the issue. You want to go from here to pqu.PNG

here.

 

pqu1.PNG

Here is my pbix just go to table(2) and look at the steps.  Not sure how the is affected by a file in SharePoint.

Combine rows
Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi Nathenial, 

Thank you so much for your quick reply, however what i`m trying to do is a bit more complicated, as my real table got completely messy by transposing the table , also splitting the column by delimiter after being merged together will get my data more messy,

what i`m trying to do.. is as follows
1- Keep only duplicated unique ID and remove the rest ( taking into consideration the refresh.. as some new data may make one of the old unique IDs dublicated )
2-Merge rows for the duplicated leaving only one row with all the information

So far thank you so much for your assistance.
Omar


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