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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
jip31
Contributor
Contributor

help on if expresssion

Helllo

 

I try to count the number of employee ID like this but it doesnt works

What is the problem please?

if(EmployeeID='2', COUNT(EmployeeID))

Labels (1)
1 Solution

Accepted Solutions
Or
MVP
MVP

If() goes inside the count(), not vice versa.

Count(If(EmployeeID='2',EmployeeID))

You could clean that up with Count({< EmployeeID = {2} >} EmployeeID) and not use if() at all.

View solution in original post

2 Replies
Or
MVP
MVP

If() goes inside the count(), not vice versa.

Count(If(EmployeeID='2',EmployeeID))

You could clean that up with Count({< EmployeeID = {2} >} EmployeeID) and not use if() at all.

jip31
Contributor
Contributor
Author

thanks