Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
First thing i would like to tell you that, the use of setanalysis is not proper.
Sum({$<Field1 = {Var1'}>} [SomeSales]), this expression itself contains the if statement. Meaning it will give you sum of SomeSales only if Field1 = Var1. So it will be purly for Var1.
Now as far as performance is concerned the 'if' within sum() takes less time to calculate then sum() in if statement.
Thus your converted expression takes more time to calculate then your first expression.
Hope you understood.
Regards,
Kaushik Solanki