In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

General Discussions

Discuss any topics that are not product-specific here.
SOLVED

3 Year Rolling Average

zzhangs
5 - Atom

Hello Community, 

 

I am trying to calculate the 3 year rolling average for the table below in Alteryx. The goal is to create a visual in PBI. 

 

The data output is below: 

 

Logic: 

Average of every 3 year group 

i.e.  2015-2017 average = (4+3+2)/3 = 3 

       2016-2018 average = (3+2+5)/3=3

       2017-2019 average = (2+5+5)/3= 4

and so on.. 

 

expected result is "3 year rolling avg" column below 

 

YearTotal Programs 3 Year Rolling Avg 
2015-01-014 
2016-01-013 
2017-01-0123
2018-01-0153
2019-01-0154
2020-01-0124
2021-01-0164
2022-01-01106
2023-01-0157
2024-01-0136
2025-01-0175
2026-01-0176
2027-01-0146
2028-01-0155

 

1 REPLY 1
tristank
11 - Bolide

rolling average.jpg

Labels
Top Solution Authors