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).

RE: How to use CASE WHEN correctly in a saved search.

RE: How to use CASE WHEN correctly in a saved search.

Any help would be appreciated.

Jasonmarks75 Rookie Asked on December 3, 2024 in How To's.
Add Comment
1 Answers

I’d try “ELSE 0 END” as a first step.

Advanced Answered on December 4, 2024.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.