Hey,
I've been working on a dashboard that has a radio selector to select which project the dashboard presents data from.
In this process, if an option is not set on the radio selector, my dashboard populates with "Please filter on Project" on most of my cards except one which is not behaving as expected.
For context, each project has a name, manager and sponsor; with my in-card filters, there are nine projects.
The code below works as intended
CASE
WHEN COUNT(`Project_Manager`) = 1
THEN CONCAT('Delivery Lead: ',`Project_Manager`,'
', 'Accountable Executive: ', `Project_Sponsor`)
ELSE 'Please Filter on Project'
END
However, as soon as I add more to the Concat function, as you can see below.
CASE
WHEN COUNT(`Project_Manager`) = 1
THEN CONCAT('Project Name: ',`Project_Name`,'
', 'Delivery Lead: ', `Project_Manager`,'
', 'Accountable Executive: ', `Project_Sponsor`)
ELSE 'Please Filter on Project'
END
OR
CASE
WHEN COUNT(`Project_Name`) = 1
THEN CONCAT('Project Name: ',`Project_Name`,'
', 'Delivery Lead: ', `Project_Manager`,'
', 'Accountable Executive: ', `Project_Sponsor`)
ELSE 'Please Filter on Project'
END
Both outputs do not behave as expected and populate with the first project of the nine instead of the 'Please Filter on Project' as intended, even though there are 9 Project_names/managers etc.
Any help with this would be greatly appreciated.
Best,
Stuck