Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.