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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.