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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi. I have a table where I will use one column for date and another column for values. I want to use values to calculate the rolling average of the preceding three annual periods. It means the last e caluendar years, for 2022, 2023 and 2024. How can I make a nes column or measure calculating the rolling average?
Solved! Go to Solution.
Hi @LFM - please find the attached file.
Proud to be a Super User! | |
I made a column shown under that shows average for all values before a certain date, and for every date it shows average of all values before that date. I think I will do this for the last 3 calendar years only, but cannot find a solution
Hi @LFM - If you don't already have a calendar table, create one to ensure accurate date handling
eg: CalendarTable = CALENDAR(MIN(YourTable[Date]), MAX(YourTable[Date]))
and create a relationship with date table , date column.
for rolling average for 3 yrs use the below calculation and replace the table name as per your model.
Proud to be a Super User! | |
Thanks for reply I will try it out. I need to ask, where did you create the column current week?: financials[Current Week]
you can try to create it in your date table.
Eg:
VAR RollingCount = COUNTROWS(SUMMARIZE(FilteredYears, YEAR(YourTable[Date])))
check this.
Proud to be a Super User! | |
could you please share the file you made with sample data?
Hi @LFM - please find the attached file.
Proud to be a Super User! | |
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 69 | |
| 47 | |
| 44 | |
| 28 | |
| 19 |
| User | Count |
|---|---|
| 200 | |
| 125 | |
| 102 | |
| 69 | |
| 53 |