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

Set analysis

Hi,

I want change the if condition to Set analysis and for the below expression I want change.

sum(if(SCENARIO='S1' or SCENARIO = 'JUMP-OFF' ,PD_FLOOR_WA*EAD_WA,0))/sum(if(SCENARIO='S1' or SCENARIO = 'JUMP-OFF' ,EAD_WA,0))*100

Thank you.

12 Replies
rubenmarin

Not sure if this will work:

Sum({<Trad_PRODUCT_TYPE ={'OTC Derivative'}>} Trad_UNREALIZED_PL)

+ Sum({<Trad_PRODUCT_TYPE ={'SFT'}>} Trad_COLLATERAL_VALUE)

+ Sum(Trad_CURR_BOOK_VALUE)


Also I'm not sure if this version has better performance than the 'if' version.

Not applicable
Author

Thanks Ruben,

I will try that...

Before that I want to know the functionality of the previous expression(

sum( {<SCENARIO*={'S1','JUMP-OFF'}>}  PD_FLOOR_WA*EAD_WA )

/ sum( {<SCENARIO*={'S1','JUMP-OFF'}>}  EAD_WA )*100)

what is the meaning of - SCENARIO*=

If possible, could you please expalin?

Thank you,

rubenmarin

Hi,

SCENARIO --> Field you want to apply set analysis.

*= --> Means intersection, it is: filter the values selected and in the especified values