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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
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

Labels (1)
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) )