Greetings,
I used the following formula to determine if a given course is (day, evening, etc.) .which works fine in a vertical report format, but gives wrong count (doubles) when in crosstab report. Plese see example below
Var1
= If([Section Number]) InList( "75" ; "75A" ; "75B" ; "75C" ; "85" ; "99" ; "S175" ; "S175A" ; "S175B" ; "S199" ; "S275" ; "S275A" ; "S275B" ; "S285" )
Then "Online" ElseIf [Section Number] InList ( "65" ; "65A" ; "S165" ; "S265" ) Then "Hybrid" ElseIf FormatDate ([Meeting Start Time] ; "HHmm") >=
"1700" Then "Evening" ElseIf(IsNull ([Meeting Start Time]) ) Then "Other" Else "Day"
Var2
= Min([Total Enrolled Distinct]) In ([Section ID] ; [Section Number] ; [Term] ; [Course Name] ; [Meeting Start Time]
Course term section # start time type total
P-099 2012-WI 05 1:00 PM hybrid 14
P-111 2011-FA 01 12:30 PM Day 26
2011-FA 11:30 AM Day
P-241 2012-SU S-101 other 23
In my crostab where there exists multiple start times, I get the count doubled (below). I just want the crostab to function as my vertical format (above)
Course Day Hybrid Other total
P-099 28 28
P-111 52 52
P-241 23
Regards,
OCM
I used the following formula to determine if a given course is (day, evening, etc.) .which works fine in a vertical report format, but gives wrong count (doubles) when in crosstab report. Plese see example below
Var1
= If([Section Number]) InList( "75" ; "75A" ; "75B" ; "75C" ; "85" ; "99" ; "S175" ; "S175A" ; "S175B" ; "S199" ; "S275" ; "S275A" ; "S275B" ; "S285" )
Then "Online" ElseIf [Section Number] InList ( "65" ; "65A" ; "S165" ; "S265" ) Then "Hybrid" ElseIf FormatDate ([Meeting Start Time] ; "HHmm") >=
"1700" Then "Evening" ElseIf(IsNull ([Meeting Start Time]) ) Then "Other" Else "Day"
Var2
= Min([Total Enrolled Distinct]) In ([Section ID] ; [Section Number] ; [Term] ; [Course Name] ; [Meeting Start Time]
Course term section # start time type total
P-099 2012-WI 05 1:00 PM hybrid 14
P-111 2011-FA 01 12:30 PM Day 26
2011-FA 11:30 AM Day
P-241 2012-SU S-101 other 23
In my crostab where there exists multiple start times, I get the count doubled (below). I just want the crostab to function as my vertical format (above)
Course Day Hybrid Other total
P-099 28 28
P-111 52 52
P-241 23
Regards,
OCM