I have been trying to build a pivot table based on two separate criteria that enables you to drill-down accurately.
For instance:
Each row in my raw data contains a region (N, S, E or W) and a series of "flags". Human (1 or 0), Dog (1 or 0), Male (1 or 0), Female (1 or 0) and Confirmed (1 or 0):
... and so on in this format
REGION HUMAN DOG MALE FEMALE CONFIRMED North 1 0 1 0 1 South 1 0 0 1 1 South 0 1 0 1 1 East 1 0 1 0 0
I want to create a pivot that groups the various "flags" by region as follows:
North South East West Total Humans 54 4 12 21 91 Confirmed 23 19 2 8 42
I have this which works, but when you click on a value to see the details, it filters by the Region, but not by the "flag" column that row is based
Column Labels:Row Labels:
- REGION
Values:
- VALUES
- Sum of Humans
- Sum of Confirmed
This displays properly, but clicking on any of the values returns all the values for a given column, but shows all 1's and 0's rather than just the 1's which is what I need. Is there a way to perform some type of conditional Count Of rather than using Sum to get the values?
Such as:
- Count Of Humans Where Value equals 1
- Count of Confirmed where value equals 1
Is there a way (preferable an easy way that I'm overlooking) to do this?
Thanks in advance!
Bookmarks