Hi All,
I'm trying to use a report query to show a count of unique values using the method "returnDistinctValues", but I get an error that it's an invalid expression.
Error: An error occurred when checking the report template. Failed to parse ${anuran_observations | stats:"count,anuran_species" returnDistinctValues:true} since it is an invalid expression.
The idea is that if I have the following species recorded: Wood Frog, Mink Frog, Wood Frog, Spring Peeper; the count will be 3 rather than 4 (Wood Frog being counted once instead of twice).
If I remove "returnDistinctValues:true", the count works, but counts all values rather than those that are unique. Any idea what I'm missing? Am I using this method wrong?
