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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
jagjivvt
Creator
Creator

Expression in straight Table

hi

i am applying the following in and Expression

=if([Aging] = '91-120' or '121-99999', Sum (Amount))

when i apply this it return only the amount in 91-120 and the complete total.

thanks

vijay



1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi Vijay, You need to specify the field twice for the two conditions in the if statement:

=if([Aging] = '91-120' or [Aging]='121-99999', Sum (Amount))

Depending on the data structure you might need to do Sum(If()) instead but you seem to get the correct result for Aging= 91-120 so it should work.

View solution in original post

1 Reply
Anonymous
Not applicable

Hi Vijay, You need to specify the field twice for the two conditions in the if statement:

=if([Aging] = '91-120' or [Aging]='121-99999', Sum (Amount))

Depending on the data structure you might need to do Sum(If()) instead but you seem to get the correct result for Aging= 91-120 so it should work.