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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

SUM IF with AGGREGATE Function

Hello - I am new to Qlik and need to do a IF and aggregate function. Is this possible?

This is what I have but get an ERROR:

SUM(IF(Status= 'Eligible',IF(Status= 'Out Of Contract',(SUM(Revenue)/COUNT(member_id)))))

Thanks!

1 Reply
vishsaggi
Champion III
Champion III

Are you looking for this? If not can you elaborate a little more please on what exactly you are trying to calculate.

= IF(Status= 'Eligible', Sum({< Status= {'Out Of Contract'} >} Revenue)/COUNT(member_id))