RE: How to use CASE WHEN correctly in a saved search.
Hello. I am trying to add a line to my saved search which displays the count of all the lines containing distinct data, but only where the location = ‘xxxxxx’, but I am getting an error.
This is the formula I am using – CASE WHEN {location} = ‘Mudgee’ THEN count(distinct{binnumber}||{datecreated})/206 ELSE NULL END
The following is the complete search results and output (Without the error line included).
Any help would be appreciated.
I’d try “ELSE 0 END” as a first step.

