Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
User12321
Contributor III
Contributor III

Rolling Average to Ignore Date Filters

Hi,

I have a pivot table with columns MonthYear, Average Price and Rolling Average.

When date filter is selected, the column for Rolling Average displays either - or a wrong value. 

Any advise on what is wrong?

Thank you.

Labels (1)
6 Replies
vinieme12
Champion III
Champion III

Don't refer the column instead use the full expression and ignore Month selection in set analysis

For example; if your expression for average is = Avg(Values)

Then

Aggr(RangeAvg(Above(Avg({<Month=>}Values),1,3)),Month)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
User12321
Contributor III
Contributor III
Author

Hi @vinieme12 ,

Aggr by month was excluded as everything appears as - when I added it in, not sure what I'm doing wrong here.

vinieme12
Champion III
Champion III

You need to wrap the below expression in aggr and aggr based on the dimensions used in the chart.  

Aggr(RangeAvg(Above(Avg({<Month=>}Values),1,3)), dimensionname1, dimensionname2)

 

 

 

 

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
User12321
Contributor III
Contributor III
Author

Hi @vinieme12 ,

After aggr, the rolling averages only appears if I expand to the sub dimension. How can I also make the rolling averages appear in the overall dimension? 

vinieme12
Champion III
Champion III

post a sample

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
vinieme12
Champion III
Champion III

Please post a sample

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.