SOLVED

Applying pivot to get total value per name, but add items name only for unique

Copper Contributor

A) I have below data

NameValueItem
Robert200Apple
Robert500Apple
Robert100Orange
Austin50Pie
Austin70Grape
Austin20Pie

 

 

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:

 

NameValueItems
Robert800Apple ; Orange
Austin140Pie ; Grape

 

 

c) I tried , but in items i am getting all the values & repeat also.

how can i get only unique values in it

5 Replies

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

 

Hi Jos,
Yes I can add data model & measure, but I dot use power pivot.
I use normal pivot, data model & measure, is it possible with these
Your Pivot Table has to come from the Data Model. Not sure what you mean by not using Power Pivot, since by definition any measures must be created within Power Pivot.
best response confirmed by vt_excel (Copper Contributor)
Solution

@vt_excel 

 

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

1 best response

Accepted Solutions
best response confirmed by vt_excel (Copper Contributor)
Solution

@vt_excel 

 

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

View solution in original post