Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I have computed the following expression:
sum({$<Year=,Month=, Frame=P({1<[Data Type]={V},[Year Month]={"<=$(vDateMax)"}>})-P({1<[Data Type]={B},[Year Month]={"<=$(vDateMax)"}>})>} [Num Frame])
where vDateMax = Max(Year)&Max(Month)
It works well on graphs without Time Dimensions.
I want to plot this expression on a graph with Year and Month as the dimensions. The idea is that the value of the dimension of the graphic just have to influence on the value of the variable vDateMax
But I do not know if it is possible to apply the value of the graph dimension to compute a value used on the set analysis.
any ideas?
Thanks in advance,
It's possible: Evaluating "sets" in the context of a dimension
But probably not what you should do. If you want to calculate cumulative values like rolling totals see this document: Calculating rolling n-period totals, averages or other aggregations