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 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
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.