Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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 Staff | Project Name |
1 | John Doe | Space March |
1 | Jane Smith | Space March |
2 | Dave Williams | File Sharing |
Here's what I'm aiming to do:
File # | Assigned Staff | Project Name |
1 | John Doe/Jane Smith | Space March |
2 | Dave Williams | File Sharing |
Solved! Go to Solution.
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,
That worked brilliantly. Thanks.
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,
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
76 | |
61 | |
37 | |
33 |
User | Count |
---|---|
99 | |
56 | |
51 | |
42 | |
40 |