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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
evadung
Frequent Visitor

Moving average weekly

Hello,

I have calculated measure (values) and I want to see moving average based on weeks. 

 

This is what it should look like:

Weekvaluesmoving average - should be
1187 750187 750
2493 333340 541,5
3775 840485 641

 

I tried this formula but it shows wrong values: 

Moving average =
averagex(
    FILTER(ALLSELECTED(Kalender),
    Kalender[Datum] <= MAX(Kalender[Datum)),
        [Gesamtleistung])
 
Do you have any ideas?

 

1 REPLY 1
amitchandak
Super User
Super User

@evadung , You have to try a measure like

 


Cumm Sales = CALCULATE(AverageX(Values('Date'[Week Year]), CALCULATE(SUM(Sales[Sales Amount]))),filter(all('Date'),'Date'[date] <=max('Date'[date])))

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

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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