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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Abz_17
Helper I
Helper I

Rolling 7 Days Average

Hi All, 

 

I have a dataset which starts on 4th Jan 2021. What I want to do is show the rolling 7 day average for each of these dates so for example 12/02/2023 i want to know what the average has been over the last 7 days, and on 11/02/2023 the average over the last 7 days of that date etc etc. I have attached my sample file, if anyone could help that would be great. 

 

https://drive.google.com/file/d/1cj5I_RJI9mOSHyC7iR-s2OVUkN_6ShCM/view?usp=sharing 

1 ACCEPTED SOLUTION
miTutorials
Super User
Super User

I have made a Tutorial to show the rolling average. From the dropdown you can select days and follow the tutorial.

 

Calculate Dynamic Rolling Average in PowerBI using a Slider  

 

Regards

Mohammed Ismail

www.youtube.com/MiTutorials

View solution in original post

5 REPLIES 5
miTutorials
Super User
Super User

I have made a Tutorial to show the rolling average. From the dropdown you can select days and follow the tutorial.

 

Calculate Dynamic Rolling Average in PowerBI using a Slider  

 

Regards

Mohammed Ismail

www.youtube.com/MiTutorials

Hi, I tried the solution but am getting this error

 

Abz_17_0-1676379322939.png

says it cant display visuals due to the error above. Is it to do with my data? Or something else?

Are you using the Primary date column from the table ? Do you have this table connected to a calendar table ?

I am using the date column from my table. I dont have a calendar table involved. Data set looks like this

 

Abz_17_1-1676382916338.png

 

Hi thanks for getting back to me. I am getting this error coming up with your method

 

Abz_17_0-1676377549595.png

 

 

Im not sure if it is because my values are set as percentages and not a whole number. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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