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
kfschaefer
Helper IV
Helper IV

calculate average for past 7 days

Is there a function to calculate the (current date-1)-7 to display the average over the past 7 days not including current date?

 

If 4/21/2016 then 4/20/2016-7 days for the average of the Revenue for those dates.

 

day        Revenue

1             25000

2             50000

3             23000

4            14000

5            14000

6            18000

7             5000

 

so the average = 21285.71

thanks,

 

K

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION
Sean
Community Champion
Community Champion

@kfschaefer Just a final friendly warning.

 

The way you have it setup in Excel AVERAGE is not giving you divided by 7 in ALL cells!

 

Create a separate column and see for yourself => check manually => add the 7 Revenues and divide by 7 (write /7)

 

do this for all your dates => let me know if you get the same Averages as AVERAGE( ) is giving you?

 

 

 

 

View solution in original post

16 REPLIES 16

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.