Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello all,
I'm simply trying to use a variable (vCommissionableTotalSales) in my set analysis like this:
Sum({$<Month={'=Month(today())'}>} $(vCommissionableTotalSales))
...which gives me an error: Nested aggregation not allowed. Is this not possible to do?
What is the definition of vCommissionableTotalSales?
Where are you using this expression?
vCommissionableTotals = Sum({$*BM13} [Sales Amount])
Remove SUM
Only({$*BM13} [Sales Amount])
and try
Not sure if you meant "{$*BM13} [Sales Amount]" or "Only({$*BM13} [Sales Amount])", but I tried both as the variable definition. The first gave an error and the second returned null.
My Mistake,,,, Only will not work here... will check and come back to you on this
I'm actually trying to use this in a text box. In the full expression I'm adding "=" to the beginning.
I ended up just adding to my set analysis the criteria used in the variable's set analysis like so:
Sum({$*BM13<Month={$(=Month(Today()))}>}[Sales Amount])
Worked just fine. Just thought it'd be easier to use the variable.