SyntaxFix
Write A Post
Hire A Developer
Questions
You want to put the ISNULL inside of the COUNT function, not outside:
ISNULL
COUNT
Not GOOD: ISNULL(COUNT(field), 0)
ISNULL(COUNT(field), 0)
GOOD: COUNT(ISNULL(field, 0))
COUNT(ISNULL(field, 0))