How to Count Unique Values within a Pivot Table?

Occasional Visitor

In a pivot table (attached), I would like to add a column to show a count of unique names.  Effectively for a small batch with only one territory, it is easy to do a =COUNTA for the names listed.  But how can I do this for multiple names in multiple territories within a pivot table? (~20,000 lines to analyze)  


Pivot Setup:

Territory (Country1) is in Rows

Name (Aaron, Adrian, etc) is in Rows

Count (5,3, etc) is in Values


Thank you!






1 Reply

@JimS0422 , if creating PivotTable you select the option Add data to data model, in list of aggregations for values you may select Distinct count instead of Count

Related Conversations
Counting Days
Tim Hunter in SQL Server on
2 Replies
Pivot table
gabriellerocha in Excel on
5 Replies
How to count multiple values in a cell
Ugarte335 in Excel on
7 Replies
PivotTable : Unexpected behavior with 2 tables
CastyChichi in Excel on
2 Replies