Feb 10 2023 08:50 PM
A) I have below data
Name | Value | Item |
Robert | 200 | Apple |
Robert | 500 | Apple |
Robert | 100 | Orange |
Austin | 50 | Pie |
Austin | 70 | Grape |
Austin | 20 | Pie |
B) Want that, when applying pivot, final result should be like below
1. name column get combined,
2. Value name gets add up
3. Item names get concatente but only unique items appears like below:
Name | Value | Items |
Robert | 800 | Apple ; Orange |
Austin | 140 | Pie ; Grape |
c) I tried , but in items i am getting all the values & repeat also.
how can i get only unique values in it
Feb 10 2023 10:42 PM - edited Feb 10 2023 10:42 PM
Hi,
You'll need to add your table to the Data Model, after which you can achieve what you want using a measure within Power Pivot. Let me know if that's an option for you and I'll post the solution.
Regards
Feb 10 2023 11:33 PM
Feb 11 2023 12:31 AM
Feb 11 2023 02:33 AM
Feb 11 2023 02:55 AM - edited Feb 11 2023 02:55 AM
Solution
Create this measure within Power Pivot:
=
CONCATENATEX(
VALUES( Table1[Item] ),
Table1[Item],
", "
)
Change the table name as required.
You can then add this measure to the Values area of the Pivot Table together with the Name field (Rows area) and Value field (Values area).
Regards