cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Frequent Visitor

## Weekly Rolling Average

Hello All

I try to calculate a rolling average by week and it seems that it work the formula that I try, however when the calculation goes to week 52 the calculation finished there, does not follow the next year.

The formula that I used was:

CALCULATE([AVERAGE PEAK FORCE],
FILTER(ALL(WYLIE),
WYLIE[Week Number] = SELECTEDVALUE(WYLIE[Week Number]) -12))

Any help will be greatly appreciated.

Attached is my power bi project
1 ACCEPTED SOLUTION
Super User

Please refer to my file. I t use rank on week start date to calculate 12 weeks rolling

https://www.dropbox.com/s/9agcbser2sqk02s/sales_analytics_weekWiseFriday_thru.pbix?dl=0

6 REPLIES 6
Community Support

Hi , @Lu1sT0rr3s

Best Regards,
Community Support Team _ Eason

Frequent Visitor

Hello

Try this one

Super User

can you share on which formula/visual, what is the expected output

Frequent Visitor

I solve my problem with the rolling average per week, however there is another problem, I need the rolling average of a measure that I create, the measure is called MACD WEEK.

I would like to calculate the rolling average of 9 points of that measure in the same way, per week.

Super User

Please refer to my file. I t use rank on week start date to calculate 12 weeks rolling

https://www.dropbox.com/s/9agcbser2sqk02s/sales_analytics_weekWiseFriday_thru.pbix?dl=0

Super User
Perhaps try using Sequential in the Quick Measures gallery to make this easier.

Become an expert!: Enterprise DNA
External Tools: MSHGQM
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - August 2024

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

#### Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

#### Fabric Community Update - September 2024

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

Top Solution Authors
Top Kudoed Authors