Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to apply the value of the graph dimension to compute a value used on the set analysis.

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,

1 Reply
Gysbert_Wassenaar

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


talk is cheap, supply exceeds demand