Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have used an expression to figure out the 3 year rolling average, but how do i show only the most recent for example. I only want to show the most recent rolling 3 year average so i only want to show the value for 2014, but when i try to hide the other years it effects the expression so the value is not the same. Any ideas?
Year Rolling
2011 2906
2012 1732
2013 1876
2014 1036
hi Zeth,
if your condition is when no selection is made rolling 3 yr. calculation should be shown and if any selection is done on year then only that year's value should be show up then use the below expression.
=if(Only(Year1),sum ({<Year1={'=$(=max(Year1))'}>}Rolling),
sum ({<Year1={'>=$(=max(Year1)-2)<=$(=max(Year1))'}>}Rolling))
It would be much easier to explain if you posted a sample.
Did you use the expression like this for rolling?
sum(aggr(rangesum(above(total sum({<Year=>}Amount),0,3)),Year))
To see the latest year, you may need to try set exp like below-
{<Year={$(=Max(Year))}
Or follow the post Calculating rolling n-period totals, averages or other aggregations for detailed understanding
posted by gwassenaar
Always share sample data for faster response as troyansky suggested. Thanks.
hi Zeth,
if your condition is when no selection is made rolling 3 yr. calculation should be shown and if any selection is done on year then only that year's value should be show up then use the below expression.
=if(Only(Year1),sum ({<Year1={'=$(=max(Year1))'}>}Rolling),
sum ({<Year1={'>=$(=max(Year1)-2)<=$(=max(Year1))'}>}Rolling))