Excel Distinct Counts on Pivot Tables are aggregating incorrectly - Stack Overflow

admin2025-04-27  4

I have the followng table in Excel and I am trying to aggregate the distinct counts, in a pivot table, however the values are off and I am wondering why. I am using the distinct count option within the pivot values for the student,teacher and aide

Below is the output, that the pivot table is currently providing

I would like the ideal output to look like this:

I have the followng table in Excel and I am trying to aggregate the distinct counts, in a pivot table, however the values are off and I am wondering why. I am using the distinct count option within the pivot values for the student,teacher and aide

Below is the output, that the pivot table is currently providing

I would like the ideal output to look like this:

Share Improve this question asked Jan 11 at 14:55 Philo Philo 551 silver badge7 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Distinct count includes "blank", so you'll have to write your own measure field, try something like

=CALCULATE(DISTINCTCOUNT(Table1[teacher]), NOT(ISBLANK(Table1[teacher])))

Then select that field instead of Distinct Count of teacher.

转载请注明原文地址:http://anycun.com/QandA/1745707623a91107.html