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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Trailing 5 day average of resolution

I have date that looks like the following:

IDCreated DateResolved Date
101/02/2101/03/21
201/02/2101/04/21
301/03/2101/03/21
401/05/21(blank)
501/05/2101/05/21

 

 

 

I need to calculate the trailing 5 day daily average for items resolved. I tried the following but it's not returning the correct numbers based on manual calculations:

 

measure = Calculate(Countrows('Table'),DATESINPERIOD('Table[Resolved Date]', LASTDATE('Table[Resolved Date]'),-5,DAY))
 
I have another table being used as a date reference table that just contains a row for every date that exists in the data. I would need to use this as the dimension to calculate this on. Any help on this would be great.
1 REPLY 1
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

Please correct me if I wrongly understand your question.

I assume that you want to know the 5days moving average for items in the process?

Please check the below picture if that is what you are looking for.

the sample pbix file's link is down below, and you can see all measures in the file.

 

Picture1.png

 

https://www.dropbox.com/s/qsoqv29jx24g54z/mallen82.pbix?dl=0 

 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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