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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Moving Avg Calculation

Hi,

I am trying to calculate moving Average for the below data:

MA.PNG

I greatly appreciate some help in DAX script.

I do not have any Date/Calender table.

 

Thanks

1 REPLY 1
smpa01
Community Champion
Community Champion

Running Average Measure = DIVIDE(CALCULATE(
    SUM('Table1'[10 Week]),
    FILTER(
        ALLSELECTED('Table1'[Date]),
        ISONORAFTER('Table1'[Date], MAX('Table1'[Date]), DESC)
    )
),
CALCULATE(
    COUNTA('Table1'[10 Week]),
    FILTER(
        ALLSELECTED('Table1'[Date]),
        ISONORAFTER('Table1'[Date], MAX('Table1'[Date]), DESC)
    )
)
)
Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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