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: 
Not applicable

sum ( if )

Hi

Is there any other calculation for the following expression.

Sum (if (column=' name', if (column=' name', other column)calculation column)).

Thank you.

16 Replies
SunilChauhan
Champion II
Champion II

i thing this is oppose to requirement SCENARIO = 'JUMP-OFF' comes with  or as per requirement

Sum( If( wildmatch( SCENARIO, 'S*', ) or SCENARIO = 'JUMP-OFF'   RWA ))


hope this helps

Sunil Chauhan
its_anandrjs
Champion III
Champion III

Or may be this helps

=Sum( If( Match( SCENARIO, 'S1') And
         
Match( SCENARIO, 'S3') And
         
Match( SCENARIO, 'S4') And
         
Match( SCENARIO, 'S5') And
         
Match( SCENARIO, 'S6') And SCENARIO = 'JUMP-OFF' ,  RWA))


Regards

Anand

Not applicable
Author

Hi Anand,

Its not working.

jagan
Partner - Champion III
Partner - Champion III

Hi,

Check this expression

=sum({<SCENARIO*={'S1', 'S2', 'S3', 'S4','S5', 'S6', 'JUMP-OFF'}> RWA)


Hope this helps you.


Regards,

Jagan.


its_anandrjs
Champion III
Champion III

Other wise use or

=Sum( If( Match( SCENARIO, 'S1') And
         
Match( SCENARIO, 'S3') And
         
Match( SCENARIO, 'S4') And
         
Match( SCENARIO, 'S5') And
         
Match( SCENARIO, 'S6') Or SCENARIO = 'JUMP-OFF' ,  RWA))


Or please provide any sample file for this will easy to understand the problem with few rows only.


Regards

Anand

MarcoWedel

Please post sample data

Not applicable
Author

I will post sample data.

Thank you.