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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Rolling average for last 3 months

I am trying to get average of last 3 months for Status% using this code but its not giving correct average. I am using measure and Status%  is also measure

 

Rolling 3M Avg =
VAR Period =
    DATESINPERIOD(
        'TestBoard'[Exec Date],
        MAX('TestBoard'[Exec Date]),
        -3,
        MONTH)

RETURN
CALCULATE(
    AVERAGEX(
        VALUES('TestBoard'[Exec Date]),
        [Status%]),
    Period)
 
 
ashish_18_0-1723173968107.png

 

Can you please advise whats going wrong here.. Thanks in advance!!

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

Has the issue been solved?
Have there been any updates? Please feel free to ask me if you have any questions!

If your issue has been resolved, please mark the resolution responses as solutions.

Best Regards,
Dengliang Li

Joe_Barry
Super User
Super User

Hi @Anonymous 

 

Please refer to my answer here https://community.fabric.microsoft.com/t5/Desktop/rolling-3-months-sum/m-p/4070303#M1290389

 

Joe




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Learn about the Star Schema, it will solve many issues in Power BI!

Date tables help! Learn more



LinkedIn
Let's connect on LinkedIn


Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.