Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis Multiple Conditions

I need to create two charts: one showing data just for 'RPC' which should not change if the user selects something else and another one which would change according to user's selections.

For the static chart my dimensions are:

Sum({$<[Exchange] ={'X'}>} IM)/Sum({1<[Exchange] ={'RPC'}>} IM)

Sum({$<[Exchange] ={'X'}, [MA] = {'C'}>} IM)

For dynamic chart:

Sum({$}IM)/Sum({1}IM)

Sum({<[MA]={'C'}>}IM)

Am I making a mistake somewhere? When I select X, both charts should look the same. Results that I get are slightly different, literally 1% or less.

4 Replies
vivientexier
Partner - Creator II
Partner - Creator II

Your "Margin Account" is not the same for static and dynamic chart !

Not applicable
Author

oh sorry, pasted the wrong one, it's the same in both, changed it in the question

also, the results for the second expression match, its only the first one that doesn't match

Not applicable
Author

The difference is the denominator of your expressions. Sum({1<[Exchange Mnemonic] ={'RPC'}>} INITIAL_MARGIN) means the total of all rows with Exchange Mnemoic = RPC and ignoring all other selections. Sum({1}INITIAL_MARGIN) means total of all rows ignoring all selections including Exchange Mnemoic field.

Not applicable
Author

how would i change it to add up all the rows according to what exchange is selected?