Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
gfisch13
Creator II
Creator II

Simple IF condition in expression

Hi Folks....I thought this expression was simple but it keeps throwing an error, what am I doing wrong??

=IF([CASE_STATUS] = "Closed-Fraud", COUNT[CASE_NUMBER])

 

Thanks, George

Labels (2)
1 Solution

Accepted Solutions
Nicole-Smith
MVP
MVP

You're missing a few parentheses:

=IF([CASE_STATUS] = "Closed-Fraud", COUNT([CASE_NUMBER]))

I would also suggest using set analysis instead of an if statement:

COUNT({<[CASE_STATUS] = {'Closed-Fraud'}>} [CASE_NUMBER])

View solution in original post

2 Replies
Nicole-Smith
MVP
MVP

You're missing a few parentheses:

=IF([CASE_STATUS] = "Closed-Fraud", COUNT([CASE_NUMBER]))

I would also suggest using set analysis instead of an if statement:

COUNT({<[CASE_STATUS] = {'Closed-Fraud'}>} [CASE_NUMBER])

gfisch13
Creator II
Creator II
Author

Thank you!!  Forgot the syntax for set analysis, appreciate the help!