I’ve created a pivot table that lists the number of cases submitted by a series of locations.
Consider:
Location A 100
Location B 10
Location C 1000
TOTAL 1110
Our data for the table includes location and status. Now the client wants to see a percentage of CLOSED cases as a third column.
Consider:
Location A 100 50% (based on 50 cases marked as "closed")
Location B 10 10% (based on 1 case marked as "closed")
Location C 1000 20% (based on 200 cases marked as "closed")
TOTAL 1110 23% (based on 251 total cases marked as "closed")
I can add a third column to the table, but the second I filter on CLOSED cases, column two lists the totals of closed cases only, and my percentage is 100% for all of column three. Is there a way to leave column 2 selecting EVERYTHING, but set column one to look ONLY as closed cases?
In a perfect world, I could display location, count of ALL cases by location and count of CLOSED cases by location, expressed as a percentage of column #2
Is this doable?
I think the best way to do this is to add a column to your source data that assigns a 0 for open stores and a 1 for closed. Then using my dictum:
from this post, you can do this: