I'm a long time lurker in this forum (thanks for all the advice over the years!), and I recently finished Rob's awsesome book and feel pretty confident with the basics, but I'm having troubles putting a few pieces together for a new pivot.
I work at a post-secondary institution, and have been tasked with reporting on students enroled in 3+ courses within the Fiscal Year, by both a primary Campus and primary Program, using the following parameters:
[TABLE="class: grid"]
<tbody>[TR]
[TD]Minimum Registration Count
[/TD]
[TD]3+ registrations in the Fiscal Year
[/TD]
[/TR]
[TR]
[TD]Primary Campus
[/TD]
[TD]The student's Campus with the highest registration count in the Fiscal Year (ties favour Central, North, then East)
[/TD]
[/TR]
[TR]
[TD]Primary Program
[/TD]
[TD]The student's Program with the highest registration count in the Fiscal Year (tie-breakers randomly chosen)
[/TD]
[/TR]
</tbody>[/TABLE]
I am using the following testing data set:
[TABLE="class: grid"]
<tbody>[TR]
[TD]Reg No
[/TD]
[TD]Student No
[/TD]
[TD]Fiscal Year
[/TD]
[TD]Term
[/TD]
[TD]Campus
[/TD]
[TD]Program
[/TD]
[TD]Course
[/TD]
[/TR]
[TR]
[TD]10009
[/TD]
[TD]1001
[/TD]
[TD]2009-2010
[/TD]
[TD]2010-Q1
[/TD]
[TD]Central
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-100
[/TD]
[/TR]
[TR]
[TD]10010
[/TD]
[TD]1001
[/TD]
[TD]2009-2010
[/TD]
[TD]2010-Q1
[/TD]
[TD]Central
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-105
[/TD]
[/TR]
[TR]
[TD]10011
[/TD]
[TD]1001
[/TD]
[TD]2010-2011
[/TD]
[TD]2010-Q4
[/TD]
[TD]Central
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-110
[/TD]
[/TR]
[TR]
[TD]10012
[/TD]
[TD]1001
[/TD]
[TD]2010-2011
[/TD]
[TD]2011-Q1
[/TD]
[TD]Central
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-111
[/TD]
[/TR]
[TR]
[TD]10013
[/TD]
[TD]1001
[/TD]
[TD]2010-2011
[/TD]
[TD]2011-Q1
[/TD]
[TD]Central
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-115
[/TD]
[/TR]
[TR]
[TD]10014
[/TD]
[TD]1001
[/TD]
[TD]2010-2011
[/TD]
[TD]2011-Q1
[/TD]
[TD]Central
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-130
[/TD]
[/TR]
[TR]
[TD]10015
[/TD]
[TD]1001
[/TD]
[TD]2011-2012
[/TD]
[TD]2011-Q4
[/TD]
[TD]East
[/TD]
[TD]Fine Arts
[/TD]
[TD]FINA-100
[/TD]
[/TR]
[TR]
[TD]10016
[/TD]
[TD]1001
[/TD]
[TD]2011-2012
[/TD]
[TD]2011-Q4
[/TD]
[TD]East
[/TD]
[TD]Fine Arts
[/TD]
[TD]FINA-101
[/TD]
[/TR]
[TR]
[TD]10017
[/TD]
[TD]1001
[/TD]
[TD]2011-2012
[/TD]
[TD]2011-Q4
[/TD]
[TD]Central
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-120
[/TD]
[/TR]
[TR]
[TD]10018
[/TD]
[TD]1001
[/TD]
[TD]2011-2012
[/TD]
[TD]2011-Q4
[/TD]
[TD]Central
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-201
[/TD]
[/TR]
[TR]
[TD]10019
[/TD]
[TD]1001
[/TD]
[TD]2011-2012
[/TD]
[TD]2012-Q1
[/TD]
[TD]North
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-202
[/TD]
[/TR]
[TR]
[TD]10020
[/TD]
[TD]1001
[/TD]
[TD]2011-2012
[/TD]
[TD]2012-Q1
[/TD]
[TD]North
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-240
[/TD]
[/TR]
[TR]
[TD]10021
[/TD]
[TD]1001
[/TD]
[TD]2011-2012
[/TD]
[TD]2012-Q1
[/TD]
[TD]North
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-260
[/TD]
[/TR]
[TR]
[TD]10022
[/TD]
[TD]1002
[/TD]
[TD]2009-2010
[/TD]
[TD]2010-Q1
[/TD]
[TD]Central
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-100
[/TD]
[/TR]
[TR]
[TD]10023
[/TD]
[TD]1002
[/TD]
[TD]2009-2010
[/TD]
[TD]2010-Q1
[/TD]
[TD]Central
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-105
[/TD]
[/TR]
[TR]
[TD]10030
[/TD]
[TD]1002
[/TD]
[TD]2011-2012
[/TD]
[TD]2011-Q4
[/TD]
[TD]Central
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-120
[/TD]
[/TR]
[TR]
[TD]10031
[/TD]
[TD]1002
[/TD]
[TD]2011-2012
[/TD]
[TD]2011-Q4
[/TD]
[TD]Central
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-201
[/TD]
[/TR]
[TR]
[TD]10032
[/TD]
[TD]1002
[/TD]
[TD]2011-2012
[/TD]
[TD]2012-Q1
[/TD]
[TD]North
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-202
[/TD]
[/TR]
[TR]
[TD]10033
[/TD]
[TD]1002
[/TD]
[TD]2011-2012
[/TD]
[TD]2012-Q1
[/TD]
[TD]North
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-240
[/TD]
[/TR]
[TR]
[TD]10034
[/TD]
[TD]1002
[/TD]
[TD]2011-2012
[/TD]
[TD]2012-Q1
[/TD]
[TD]North
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-260
[/TD]
[/TR]
[TR]
[TD]10035
[/TD]
[TD]1003
[/TD]
[TD]2010-2011
[/TD]
[TD]2010-Q4
[/TD]
[TD]East
[/TD]
[TD]Fine Arts
[/TD]
[TD]FINA-100
[/TD]
[/TR]
[TR]
[TD]10036
[/TD]
[TD]1003
[/TD]
[TD]2010-2011
[/TD]
[TD]2010-Q4
[/TD]
[TD]East
[/TD]
[TD]Fine Arts
[/TD]
[TD]FINA-101
[/TD]
[/TR]
</tbody>[/TABLE]
...and with the following pivot fields:
[TABLE="class: grid"]
<tbody>[TR]
[TD]Column Labels
[/TD]
[TD]Fiscal Year
[/TD]
[/TR]
[TR]
[TD]Row Labels
[/TD]
[TD]Campus, Program
[/TD]
[/TR]
[TR]
[TD]Values
[/TD]
[TD]Student Count
[/TD]
[/TR]
[TR]
[TD]Measures
[/TD]
[TD]Student Count := DISTINCTCOUNT([Student No])
[/TD]
[/TR]
</tbody>[/TABLE]
...I get the following pivot:
[TABLE="class: grid"]
<tbody>[TR]
[TD]Location / Program
[/TD]
[TD]2011-2012
[/TD]
[TD]2010-2011
[/TD]
[TD]2009-2010
[/TD]
[/TR]
[TR]
[TD]Central
[/TD]
[TD]2
[/TD]
[TD]1
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]
[TD]2
[/TD]
[TD]1
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]East
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]North
[/TD]
[TD]2
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]
[TD]2
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]Grand Total
[/TD]
[TD]2
[/TD]
[TD]2
[/TD]
[TD]2
[/TD]
[/TR]
</tbody>[/TABLE]
...but seeing as I'm looking to filter out all students not meeting the minimum registration count, and only count them once for their primary program at their primary location, I believe the following pivot is what I'm trying to create:
[TABLE="class: grid"]
<tbody>[TR]
[TD]Location / Program
[/TD]
[TD]2011-2012
[/TD]
[TD]2010-2011
[/TD]
[/TR]
[TR]
[TD]Central
[/TD]
[TD]
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]
[TD]
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]North
[/TD]
[TD]2
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]
[TD]2
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]Grand Total
[/TD]
[TD]2
[/TD]
[TD]1
[/TD]
[/TR]
</tbody>[/TABLE]
I successfully created a detached slicer to choose the minimum number of registrations to use in the fiscal year, but I don't know if that's the right way to start this. I imagine the same pattern will be used for both of the "Primary Metrics", and I attempted to sum registration counts in calculated columns, but that only resulted in errors and random garbage. I'd be most appreciative of any advice you can give!
I work at a post-secondary institution, and have been tasked with reporting on students enroled in 3+ courses within the Fiscal Year, by both a primary Campus and primary Program, using the following parameters:
[TABLE="class: grid"]
<tbody>[TR]
[TD]Minimum Registration Count
[/TD]
[TD]3+ registrations in the Fiscal Year
[/TD]
[/TR]
[TR]
[TD]Primary Campus
[/TD]
[TD]The student's Campus with the highest registration count in the Fiscal Year (ties favour Central, North, then East)
[/TD]
[/TR]
[TR]
[TD]Primary Program
[/TD]
[TD]The student's Program with the highest registration count in the Fiscal Year (tie-breakers randomly chosen)
[/TD]
[/TR]
</tbody>[/TABLE]
I am using the following testing data set:
[TABLE="class: grid"]
<tbody>[TR]
[TD]Reg No
[/TD]
[TD]Student No
[/TD]
[TD]Fiscal Year
[/TD]
[TD]Term
[/TD]
[TD]Campus
[/TD]
[TD]Program
[/TD]
[TD]Course
[/TD]
[/TR]
[TR]
[TD]10009
[/TD]
[TD]1001
[/TD]
[TD]2009-2010
[/TD]
[TD]2010-Q1
[/TD]
[TD]Central
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-100
[/TD]
[/TR]
[TR]
[TD]10010
[/TD]
[TD]1001
[/TD]
[TD]2009-2010
[/TD]
[TD]2010-Q1
[/TD]
[TD]Central
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-105
[/TD]
[/TR]
[TR]
[TD]10011
[/TD]
[TD]1001
[/TD]
[TD]2010-2011
[/TD]
[TD]2010-Q4
[/TD]
[TD]Central
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-110
[/TD]
[/TR]
[TR]
[TD]10012
[/TD]
[TD]1001
[/TD]
[TD]2010-2011
[/TD]
[TD]2011-Q1
[/TD]
[TD]Central
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-111
[/TD]
[/TR]
[TR]
[TD]10013
[/TD]
[TD]1001
[/TD]
[TD]2010-2011
[/TD]
[TD]2011-Q1
[/TD]
[TD]Central
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-115
[/TD]
[/TR]
[TR]
[TD]10014
[/TD]
[TD]1001
[/TD]
[TD]2010-2011
[/TD]
[TD]2011-Q1
[/TD]
[TD]Central
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-130
[/TD]
[/TR]
[TR]
[TD]10015
[/TD]
[TD]1001
[/TD]
[TD]2011-2012
[/TD]
[TD]2011-Q4
[/TD]
[TD]East
[/TD]
[TD]Fine Arts
[/TD]
[TD]FINA-100
[/TD]
[/TR]
[TR]
[TD]10016
[/TD]
[TD]1001
[/TD]
[TD]2011-2012
[/TD]
[TD]2011-Q4
[/TD]
[TD]East
[/TD]
[TD]Fine Arts
[/TD]
[TD]FINA-101
[/TD]
[/TR]
[TR]
[TD]10017
[/TD]
[TD]1001
[/TD]
[TD]2011-2012
[/TD]
[TD]2011-Q4
[/TD]
[TD]Central
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-120
[/TD]
[/TR]
[TR]
[TD]10018
[/TD]
[TD]1001
[/TD]
[TD]2011-2012
[/TD]
[TD]2011-Q4
[/TD]
[TD]Central
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-201
[/TD]
[/TR]
[TR]
[TD]10019
[/TD]
[TD]1001
[/TD]
[TD]2011-2012
[/TD]
[TD]2012-Q1
[/TD]
[TD]North
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-202
[/TD]
[/TR]
[TR]
[TD]10020
[/TD]
[TD]1001
[/TD]
[TD]2011-2012
[/TD]
[TD]2012-Q1
[/TD]
[TD]North
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-240
[/TD]
[/TR]
[TR]
[TD]10021
[/TD]
[TD]1001
[/TD]
[TD]2011-2012
[/TD]
[TD]2012-Q1
[/TD]
[TD]North
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-260
[/TD]
[/TR]
[TR]
[TD]10022
[/TD]
[TD]1002
[/TD]
[TD]2009-2010
[/TD]
[TD]2010-Q1
[/TD]
[TD]Central
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-100
[/TD]
[/TR]
[TR]
[TD]10023
[/TD]
[TD]1002
[/TD]
[TD]2009-2010
[/TD]
[TD]2010-Q1
[/TD]
[TD]Central
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-105
[/TD]
[/TR]
[TR]
[TD]10030
[/TD]
[TD]1002
[/TD]
[TD]2011-2012
[/TD]
[TD]2011-Q4
[/TD]
[TD]Central
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-120
[/TD]
[/TR]
[TR]
[TD]10031
[/TD]
[TD]1002
[/TD]
[TD]2011-2012
[/TD]
[TD]2011-Q4
[/TD]
[TD]Central
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-201
[/TD]
[/TR]
[TR]
[TD]10032
[/TD]
[TD]1002
[/TD]
[TD]2011-2012
[/TD]
[TD]2012-Q1
[/TD]
[TD]North
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-202
[/TD]
[/TR]
[TR]
[TD]10033
[/TD]
[TD]1002
[/TD]
[TD]2011-2012
[/TD]
[TD]2012-Q1
[/TD]
[TD]North
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-240
[/TD]
[/TR]
[TR]
[TD]10034
[/TD]
[TD]1002
[/TD]
[TD]2011-2012
[/TD]
[TD]2012-Q1
[/TD]
[TD]North
[/TD]
[TD]Graphic Design
[/TD]
[TD]GRDN-260
[/TD]
[/TR]
[TR]
[TD]10035
[/TD]
[TD]1003
[/TD]
[TD]2010-2011
[/TD]
[TD]2010-Q4
[/TD]
[TD]East
[/TD]
[TD]Fine Arts
[/TD]
[TD]FINA-100
[/TD]
[/TR]
[TR]
[TD]10036
[/TD]
[TD]1003
[/TD]
[TD]2010-2011
[/TD]
[TD]2010-Q4
[/TD]
[TD]East
[/TD]
[TD]Fine Arts
[/TD]
[TD]FINA-101
[/TD]
[/TR]
</tbody>[/TABLE]
...and with the following pivot fields:
[TABLE="class: grid"]
<tbody>[TR]
[TD]Column Labels
[/TD]
[TD]Fiscal Year
[/TD]
[/TR]
[TR]
[TD]Row Labels
[/TD]
[TD]Campus, Program
[/TD]
[/TR]
[TR]
[TD]Values
[/TD]
[TD]Student Count
[/TD]
[/TR]
[TR]
[TD]Measures
[/TD]
[TD]Student Count := DISTINCTCOUNT([Student No])
[/TD]
[/TR]
</tbody>[/TABLE]
...I get the following pivot:
[TABLE="class: grid"]
<tbody>[TR]
[TD]Location / Program
[/TD]
[TD]2011-2012
[/TD]
[TD]2010-2011
[/TD]
[TD]2009-2010
[/TD]
[/TR]
[TR]
[TD]Central
[/TD]
[TD]2
[/TD]
[TD]1
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]
Graphic Design
[/TD]
[TD]2
[/TD]
[TD]1
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]East
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]
Fine Arts
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]North
[/TD]
[TD]2
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]
Graphic Design
[/TD]
[TD]2
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]Grand Total
[/TD]
[TD]2
[/TD]
[TD]2
[/TD]
[TD]2
[/TD]
[/TR]
</tbody>[/TABLE]
...but seeing as I'm looking to filter out all students not meeting the minimum registration count, and only count them once for their primary program at their primary location, I believe the following pivot is what I'm trying to create:
[TABLE="class: grid"]
<tbody>[TR]
[TD]Location / Program
[/TD]
[TD]2011-2012
[/TD]
[TD]2010-2011
[/TD]
[/TR]
[TR]
[TD]Central
[/TD]
[TD]
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]
Graphic Design
[/TD]
[TD]
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]North
[/TD]
[TD]2
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]
Graphic Design
[/TD]
[TD]2
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]Grand Total
[/TD]
[TD]2
[/TD]
[TD]1
[/TD]
[/TR]
</tbody>[/TABLE]
I successfully created a detached slicer to choose the minimum number of registrations to use in the fiscal year, but I don't know if that's the right way to start this. I imagine the same pattern will be used for both of the "Primary Metrics", and I attempted to sum registration counts in calculated columns, but that only resulted in errors and random garbage. I'd be most appreciative of any advice you can give!