For more information, please refer to this announcement explaining best practices for getting answers to questions.
No fact table exists at the requested level of detail - Ethnicity Issue
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