You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

No fact table exists at the requested level of detail - Ethnicity Issue

Received Response
33
Views
5
Comments

Summary: Hi - We have a roster report for our whole employee population and I was trying to tweak the ethnicity section to account for the many scenarios of if they choose multiple races or if they choose Hispanic or Latino as an option. I have this expression that I have used in another report:

CASE WHEN "Worker"."Employee Ethnicity" IS NULL THEN 'Not disclosed' WHEN (MAX (CASE WHEN "Worker"."Employee Ethnicity" = 'I am Hispanic or Latino.' THEN 1 ELSE 0 END by "Worker"."Person Number") = 1) THEN 'I am Hispanic or Latino.' WHEN ((COUNT(DISTINCT "Worker"."Employee Ethnicity" BY "Worker"."Person Number") > 1) AND (MAX (CASE WHEN "Worker"."Employee Ethnicity" = 'I am Hispanic or Latino.' THEN 1 ELSE 0 END by "Worker"."Person Number") = 0)) THEN 'Two or more races' ELSE "Worker"."Employee Ethnicity" END

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!