Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression help

Need to calculate value of subject 2 where  class is B and subject 2 is greater then Subject A

S.noSubject1Subject2Class
15206175A
23151400B
3623445C
52545A
6225702B
736541512C
8400513350A
915753060B
1 Solution

Accepted Solutions
Not applicable
Author

There were some syntax and logical error.

This is same as what i have suggested earlier. Just replace class with status, Subject 2 as Actuals and Subject1 as Est Value.

Sum({<Class={'B'}>} if(Subject2 >((Subject1)*0.9) ,Subject2))

View solution in original post

3 Replies
Not applicable
Author

Hi,

Try this expression " Sum({<Class={'B'}>} IF(Subject2>Subject1,Subject2)) ". Hope this will help.

Thanks,

Srini.

Not applicable
Author

what's wrong with dis expression:

Sum(({<Status={'In Progress'}>}if(Sum([Act Value])>(Sum([Est Value])*0.9),Sum([Act Value])))

Not applicable
Author

There were some syntax and logical error.

This is same as what i have suggested earlier. Just replace class with status, Subject 2 as Actuals and Subject1 as Est Value.

Sum({<Class={'B'}>} if(Subject2 >((Subject1)*0.9) ,Subject2))