Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Aggregate Function with Trends

Hi

I would like to create a chart with Monthly Trends and the calculation requires and Aggregate function to return desired results.

I want to view months before and including selected months, however as soon as I use aggr() in the expression, this capability is broken and I only see the selected month. Is there a way to do this without having to aggregate data in the back end?

Please see attached qvw

1 Solution

Accepted Solutions
sunny_talwar

Apply the inner aggregation set analysis to the outer aggregation also to fix this issue

Avg({<Month={"<=$(vMaxMonth)"}>} Aggr(Avg({<Month={"<=$(vMaxMonth)"}>}Sales),Month,Company))

View solution in original post

2 Replies
sunny_talwar

Apply the inner aggregation set analysis to the outer aggregation also to fix this issue

Avg({<Month={"<=$(vMaxMonth)"}>} Aggr(Avg({<Month={"<=$(vMaxMonth)"}>}Sales),Month,Company))

Anonymous
Not applicable
Author

Hi Sunny

Thanks for your reply, It works perfectly