Forum menu
Excel Pivot. Count ...
 

[Closed] Excel Pivot. Count unique items

 benz
Posts: 1143
Free Member
Topic starter
 
[#10110302]

A bit like this...

I have items named 'Bike A' and 'Bike B' stored in 15 unique storage locations.

Sum of 'Bike A' is 15, stored in 10 unique storage locations, Sum of 'Bike B' is 16 stored in 11 unique storage locations.

So, on my pivot, how do I get it to count that there are only 2 x unique descriptions, being 'Bike A' and 'Bike B'?

I obviously have a much larger data set, but hopefully you get my drift....

Thanks.


 
Posted : 24/07/2018 10:05 pm
Posts: 0
Free Member
 

Not sure I understand this . IF you put Bike A into the pivot on the Y axis you will see it only once. Failing that would "count unique" help ?


 
Posted : 24/07/2018 10:18 pm
Posts: 5346
Free Member
 

Version 2013 has count distinct using powerpivot

http://www.contextures.com/pivottablecountunique.html


 
Posted : 24/07/2018 10:37 pm
Posts: 0
Free Member
 

Sounds like you need to upgrade to a database, or google group and count in excel.


 
Posted : 24/07/2018 10:52 pm
Posts: 840
Free Member
 

As above, not sure I understand the question... But - without using a Pivot Table (do you have to?) you can do this with a filter. This link explains it - basically, use a filter, then go to Data tab and use the Advanced Filters option.

https://support.office.com/en-us/article/count-unique-values-among-duplicates-8d9a69b3-b867-490e-82e0-a929fbc1e273

If that doesn't answer the question, perhaps you could post a (simplified) sample table?


 
Posted : 25/07/2018 2:06 am
Posts: 10962
Full Member
 

When you create the pivot table click the 'add to Data Model' box at the bottom of the dialogue, you'll then get a 'distinct count' option alongside the usual sum, count etc. in the pivot options


 
Posted : 25/07/2018 8:57 am