anationalacrobat
Technical User
The data we're tracking is for community services. We have multiple communities and community members who would take part in a class on a particular date. So our data looks like this:
date participant class community
1-1-09 joe blow underwater basketweaving Happyville
1-3-09 joe blow underwater basketweaving Happyville
1-3-09 jane blow underwater basketweaving Happyville
2-1-09 joe blow underwater basketweaving Happyville
2-2-09 joe blow charades Happyville
As it stands, pivot tables can sort this data wonderfully, grouping by community, class, date, and participant. But we're falling apart when it comes to distinct counts.
I want it to be able to tell me:
Jan
Underwater Basketweaving, 2 attendees
Feb
Underwater Basketweaving, 1 attendee
Charades, 1 attendee
Right now the Pivot table can tell me that Joe Blow and Jane Blow are in underwater basketweaving in January but I'll get a count of 3 regardless of what I put in the values box. That's because Joe went twice and Jane went once. That's my total number of sits in the class and it's important but I also need to know distinct attendees per month. Hmmmmm.
Now when I'm working with static data, I'll sort everything ascending order and do tests. I'll take row 2 and do a comparison against row 1 -- if month, participant, and class are not equal, print 1, else print null. This way if a duplicate value is below, it prints nothing. Now I have my distinct count.
Given that I'm working with dynamic data, more entries can be entered at any time and I can't count on the people doing data entry to sort everything the way my little formulas are anticipating. I've got an inkling that something like this could be accomplished with database lookups but I'm not quite sure. Is this even the right avenue to be walking down or should I be approaching it in some other fashion?
date participant class community
1-1-09 joe blow underwater basketweaving Happyville
1-3-09 joe blow underwater basketweaving Happyville
1-3-09 jane blow underwater basketweaving Happyville
2-1-09 joe blow underwater basketweaving Happyville
2-2-09 joe blow charades Happyville
As it stands, pivot tables can sort this data wonderfully, grouping by community, class, date, and participant. But we're falling apart when it comes to distinct counts.
I want it to be able to tell me:
Jan
Underwater Basketweaving, 2 attendees
Feb
Underwater Basketweaving, 1 attendee
Charades, 1 attendee
Right now the Pivot table can tell me that Joe Blow and Jane Blow are in underwater basketweaving in January but I'll get a count of 3 regardless of what I put in the values box. That's because Joe went twice and Jane went once. That's my total number of sits in the class and it's important but I also need to know distinct attendees per month. Hmmmmm.
Now when I'm working with static data, I'll sort everything ascending order and do tests. I'll take row 2 and do a comparison against row 1 -- if month, participant, and class are not equal, print 1, else print null. This way if a duplicate value is below, it prints nothing. Now I have my distinct count.
Given that I'm working with dynamic data, more entries can be entered at any time and I can't count on the people doing data entry to sort everything the way my little formulas are anticipating. I've got an inkling that something like this could be accomplished with database lookups but I'm not quite sure. Is this even the right avenue to be walking down or should I be approaching it in some other fashion?