weird problem with ms graphs

rocklee

Registered User.
Local time
Yesterday, 21:29
Joined
May 14, 2009
Messages
36
I have a graphs that simply looks up a table and counts the number of students present and absent with the following code :

TRANSFORM Count([Activity Attendance].[Activity ID]) AS [CountOfActivity ID]
SELECT [Activity Attendance].AttendanceDate
FROM [Activity Attendance] INNER JOIN Student ON [Activity Attendance].UPN = Student.UPN
GROUP BY [Activity Attendance].AttendanceDate
PIVOT IIf([Activity Attendance].[InClass],"Present","Absent");

The table has a toggle field (yes/no) that I use to mark attendance.

This works very well and I use 2 colours, yellow for students present and purple for absentees.

The problem is when all students are present, it will use purple instead of yellow.
 

Users who are viewing this thread

Back
Top Bottom