Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I have sales dating back 5 years.
I would like to find the 5 year January average, February average, etc.
Thanks!
Solved! Go to Solution.
Hi, @Anonymous
You are trying to get the average of each month for the last five years right?
Why not create a matrix and change the way the values are aggregated to the average, which doesn't even require adding any additional columns or measures.
Please correct me if I didn't understand the question correctly and consdier sharing more details about it or a simple sample file without any sesentive information for further discussion.
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
You are trying to get the average of each month for the last five years right?
Why not create a matrix and change the way the values are aggregated to the average, which doesn't even require adding any additional columns or measures.
Please correct me if I didn't understand the question correctly and consdier sharing more details about it or a simple sample file without any sesentive information for further discussion.
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous,
Try this measure. It also works with datasets that contain more than five years:
Five Year Average =
VAR vMaxYear =
CALCULATE ( MAX ( Table1[Year] ), ALL ( Table1[Year] ) )
VAR vResult =
CALCULATE (
AVERAGE ( Table1[Amount] ),
ALL ( Table1[Year] ),
Table1[Year] >= vMaxYear - 4
)
RETURN
vResult
Proud to be a Super User!
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 52 | |
| 51 | |
| 35 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 92 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |