Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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.
Your "Margin Account" is not the same for static and dynamic chart !
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
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.
how would i change it to add up all the rows according to what exchange is selected?