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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
jagjivvt
Creator
Creator

If Statements in Expressions

Hi

is there a way of using if statements in expressions to total up 2 value types e.g

my tables are

emp.type, where there are A S and W and another table has values for each emp.type. what i am trying to do is work out the cost of each emp type and display on straight table.

thank

1 Solution

Accepted Solutions
Not applicable

= SUM( IF( emptype = 'A' OR emptype = 'W', cost) )

View solution in original post

1 Reply
Not applicable

= SUM( IF( emptype = 'A' OR emptype = 'W', cost) )