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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ClemFandango
Advocate II
Advocate II

Measure to calculate rolling monthly average

Hi all, quite a simple problem for one of you geniuses.

 

I have the following simple measure that is calculating an Average by dividing the current number of months (i.e April currently = 4) from a Date table within a Card Visual.

 

 

AvgNewRolling = 
DIVIDE(SUM('RefExpand'[New]), 4)

 

 

Unfortunately, every month I have to manually update this measure (next month will be 5). Any idea how I can change this measure, so it dynamically updates without having to manually update it ?

 

Many thanks!

 

Date Table

Expanded_DateRefMinDateMaxDateDateTodayNew
01-Jan-23205701/01/2018 00:0030/09/2023 00:0011/05/2023 00:001
02-Jan-23205701/01/2018 00:0030/09/2023 00:0011/05/2023 00:00 
03-Jan-23205701/01/2018 00:0030/09/2023 00:0011/05/2023 00:00 
04-Jan-23205701/01/2018 00:0030/09/2023 00:0011/05/2023 00:00 
05-Jan-23205701/01/2018 00:0030/09/2023 00:0011/05/2023 00:00 
06-Jan-23205701/01/2018 00:0030/09/2023 00:0011/05/2023 00:00 
07-Jan-23205701/01/2018 00:0030/09/2023 00:0011/05/2023 00:00 
08-Jan-23205701/01/2018 00:0030/09/2023 00:0011/05/2023 00:00 
09-Jan-23205701/01/2018 00:0030/09/2023 00:0011/05/2023 00:00 
10-Jan-23205701/01/2018 00:0030/09/2023 00:0011/05/2023 00:00 
11-Jan-23205701/01/2018 00:0030/09/2023 00:0011/05/2023 00:00 

 

PS

Apologies, I have no idea why the table formatting never works. I have read through the forum post/tutorial and tried all browsers etc.

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Does this measure work?

AvgNewRolling = 
DIVIDE(SUM('RefExpand'[New]), MONTH(TODAY()))

Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format.
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors