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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Tripb44
Helper II
Helper II

How would I populate future months

 I need to apply the avg 3 month calc to feature dates as a projection.  How would I populate future months based linking the days such as the below highlighted cells for reference. 

 

Tripb44_1-1612968028159.png

 

 

 

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @Tripb44 ,

 

You can calculate the rolling avg 3 month like this:

3 MO avg = 
CALCULATE(
    AVERAGEX (
        VALUES ( 'Date'[Calendar Year Month] ),
        [Sales Amount]),
    DATESINPERIOD('Date'[Date], MAX ( 'Date'[Date] ), -3, MONTH )
)

 

Processing of data for future months, you can read this case for reference:Solved: Rolling Average for Future Months - Microsoft Power BI Community

 

If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.

 

Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-henryk-mstf
Community Support
Community Support

Hi @Tripb44 ,

 

You can calculate the rolling avg 3 month like this:

3 MO avg = 
CALCULATE(
    AVERAGEX (
        VALUES ( 'Date'[Calendar Year Month] ),
        [Sales Amount]),
    DATESINPERIOD('Date'[Date], MAX ( 'Date'[Date] ), -3, MONTH )
)

 

Processing of data for future months, you can read this case for reference:Solved: Rolling Average for Future Months - Microsoft Power BI Community

 

If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.

 

Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Tripb44 , A measure like this with date table

 

Rolling 3 = divide( CALCULATE(sum(Sales[Sales]),DATESINPERIOD('Date'[Date ],MAX('Date'[Date]),-3,MONTH)) ,
CALCULATE(distinctCOUNT('Date'[Month Year]),DATESINPERIOD('Date'[Date],MAX('Date'[Date]),-3,MONTH), filter(Sales,not(isblank((Sales[Sales]))))))

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

I have the rolling 3 calc.  I need to fill future dates with using the rolling 3 calc to mirror the days.  

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors