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
M_Capps
Regular Visitor

Combining similar rows

Hello,

I'm working in Power BI and trying to combine similar rows while putting the differences in the same cell.

 

Here's an example of my current data:

File #Assigned StaffProject Name
1John DoeSpace March
1Jane SmithSpace March
2Dave WilliamsFile Sharing

 

Here's what I'm aiming to do:

File #Assigned StaffProject Name
1John Doe/Jane Smith

Space March

2Dave WilliamsFile Sharing
1 ACCEPTED SOLUTION
DataNinja777
Super User
Super User

Hi @M_Capps ,

 

To combine similar rows in Power BI where the File # and Project Name are the same, and you want to merge the Assigned Staff values into a single cell separated by a slash, you can do this in Power Query. First, go to the Power Query Editor. Use the Group By feature, grouping by both File # and Project Name. For the operation, select "All Rows" so that you can access the individual rows grouped together. Then, add a custom column that merges the Assigned Staff values using Text.Combine.

Here's the custom column formula you can use:

Text.Combine([Assigned Staff], "/")

After that, remove the original nested Assigned Staff column and keep the new column with combined values. This will give you the desired output where names are joined like John Doe/Jane Smith under a single row for the same file and project.

 

Best regards,

View solution in original post

2 REPLIES 2
M_Capps
Regular Visitor

That worked brilliantly. Thanks.

DataNinja777
Super User
Super User

Hi @M_Capps ,

 

To combine similar rows in Power BI where the File # and Project Name are the same, and you want to merge the Assigned Staff values into a single cell separated by a slash, you can do this in Power Query. First, go to the Power Query Editor. Use the Group By feature, grouping by both File # and Project Name. For the operation, select "All Rows" so that you can access the individual rows grouped together. Then, add a custom column that merges the Assigned Staff values using Text.Combine.

Here's the custom column formula you can use:

Text.Combine([Assigned Staff], "/")

After that, remove the original nested Assigned Staff column and keep the new column with combined values. This will give you the desired output where names are joined like John Doe/Jane Smith under a single row for the same file and project.

 

Best regards,

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