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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Rolling 3 month average excluding December and currrent month

So I've done some research on rolling averages the last couple days. I've been somewhat successful in coming up with a solution but I'm not quite there. I have a date table and a formula to calculate average wait time, which is measured by averaging up a calculated colum. Here's my formula for the rolling average:

 

Wait Time 3 Month Rolling Average =
CALCULATE (
AVERAGEX ( VALUES ( 'Date Table'[Month] ), [Avg. Wait Time %] ),
DATESINPERIOD ( 'Date Table'[Month], MAX ( 'Date Table'[Month] ), -3, MONTH)
)
 
Some problems:
1. It doesn't exclude December, but it should
2. I believe it includes the current month in the calculation, but it shouldn't
 
For example, when February is selected in the month filter, I want the measure to calculate the average wait time from January, November, October.
 
Please help! Thanks
1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , Try something like

 

CALCULATE (
AVERAGEX ( VALUES ( 'Date Table'[Month] ), [Avg. Wait Time %] ),
DATESINPERIOD ( 'Date Table'[Month], eomonth(MAX ( 'Date Table'[Month] ),-1), -3, MONTH)
)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.