Hello everyone,
I'm facing an issue in Looker Studio where the count of records in my Scorecard widget does not match the count in my Table chart, even though I have applied the same filters on both. Here’s what I’m dealing with:
region = 'Central'
age BETWEEN 5 AND 11
program_portfolio = 'Ismaili Civic'
I’m counting unique participants using this formula:
COUNT_DISTINCT(
IF(
region = 'Central'
AND age BETWEEN 5 AND 11
AND program_portfolio = 'Ismaili Civic',
CONCAT(first_name, last_name, dob),
NULL
)
)
The Problem:
I noticed that when I add the date range control, the Scorecard count doesn’t work correctly. However, if I remove the date range control, the counts match. This suggests there is an issue with the connection between the date range control and the Scorecard count, specifically when using the COUNT_DISTINCT function with the concatenated fields.
Here is the related screenshot:
Why is there a discrepancy in the counts between the Scorecard and Table chart, even though both are using the same filters and formula for identifying unique participants? Is there a known issue with how COUNT_DISTINCT works with concatenated fields like first_name, last_name, and dob?
Any insights or suggestions would be greatly appreciated. Thanks in advance!