How to create a column heading for results that can't be grouped?

rocklee

Registered User.
Local time
Today, 08:16
Joined
May 14, 2009
Messages
36
This is my query to look up ethnicities of students based on attendance :

Code:
TRANSFORM Count([Activity Attendance].AttendanceDate) AS CountOfAttendanceDate
SELECT [Lookup - Ethnicity Code].Eth_name
FROM ([Activity Attendance] INNER JOIN Student ON [Activity Attendance].UPN = Student.UPN) LEFT JOIN [Lookup - Ethnicity Code] ON Student.[Ethnicity Code] = [Lookup - Ethnicity Code].[Ethnicity Code]
GROUP BY [Lookup - Ethnicity Code].Eth_name
PIVOT [Activity Attendance].[Activity ID];

And I use this to create a graph as a result.

However, some students don't have their ethnicities records, which gives out a "SLICE 1" heading for this group. How do I create a row heading like "OTHERS" for this unnamed row?
 
Use a query to straighten out irregularities.
Use this query in your final result.

HTH:D
 
In your query go to the column field and wrap Nz([Your Ethnicity field],"Unknown") around the field in question. This will then get over the slice 1 issue.

David
 

Users who are viewing this thread

Back
Top Bottom