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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
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

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

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!