Jamie Lawrie
10/19/2023, 2:16 AMJamie Lawrie
10/19/2023, 2:17 AMJamie Lawrie
10/19/2023, 2:20 AMSELECT 'Service id lookup'.'Service name',
COUNT('Child notes'.'service ID (count)') as activity_count
FROM 'Child Notes'
GROUP BY 'Service id lookup'.'Service name'
This appears to work except it doesn’t show 0 valuesMoises Morales
10/19/2023, 7:56 AMJakub Sterba
10/19/2023, 6:12 PM[=null]0
if the value is displayed in table (or use other text which describes the situation) or use IFNULL function as suggested by Moises above and replace NULL value by real 0 value. The metric format should be sufficient for tables but you may need to use IFNULL function in visualizations. The metric with FOR EACH will always fill missing values even if “show missing values” is not checked.Jamie Lawrie
10/20/2023, 2:21 AMJamie Lawrie
10/20/2023, 2:26 AMJamie Lawrie
10/20/2023, 2:26 AM