Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
What is the best way out to merge multiple rows and combine the values into a single column.
Partner Order ID Comments
1575 8001 1 Partner call
1575 8001 2 Order book
1575 8001 3 Order Ship
1580 8005 1 Quote request
1582 8020 1 Partner request
1582 8020 2 Order confirm
End result need to be as below. The ID column value range from 1 to N.
Partner Order Comments
1575 8001 Partner call;Order book;Order Ship
1580 8005 Quote request
1582 8020 Partner request; Order confirm
Solved! Go to Solution.
hi @Pbi07
For your case, you could try these two way:
1. use dax to create a new table as below:
Result:
2. in edit queries, group by the table as below:
= Table.Group(#"Changed Type", {"Partner", "Order"}, {"Comments", each Text.Combine([Comments], ";"), type text})
Result:
and here is sample pbix file, please try it.
Regards,
Lin
hi @Pbi07
For your case, you could try these two way:
1. use dax to create a new table as below:
Result:
2. in edit queries, group by the table as below:
= Table.Group(#"Changed Type", {"Partner", "Order"}, {"Comments", each Text.Combine([Comments], ";"), type text})
Result:
and here is sample pbix file, please try it.
Regards,
Lin
Hi Lin
I found this post very helpful, in my situation I am trying to convert my table view from lookig like this -
CostCenter | Project Leader1 | CC_prefix | BudgetName | Project_ID | CostCenter2 |
456ABC | Chris Harp | 456 | Thomas Bell | 78787899 | 777ABC |
456XYZ | Chris Harp | 466 | Peter Welling | 78787899 | 777ABC |
to look something like this -
CostCenter_combined | Project Leader1 | CC_prefix | BudgetName_combined | Project_ID | CostCenter2 |
456ABC | 466XYZ | Chris Harp | 456 | Thomas Bell | Peter Welling | 78787899 | 777ABC |
So the Project_ID is unique, the reason for the top version is because there are two members working on the same project but I want to show in my report one project_id at 'X' value. As it stands the a top table produces the total project value x 2 when it only should be one value. So if the value was 1000.00 GBP, the the table at the top would show 1000.00 GBP twice, when it needs to be only once.
Chris
Thank you. Perfect solution.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |