Issue tracker: Average Days to Resolve based on a time calculation on another range
I have an issue tracker sheet that includes SubmittedOn (Date) and ResolvedOn (Date) columns. I created a DaysToResolve column that counts the NETWORKDAYS (SubmittedOn, ResolvedOn). I am trying to build a dashboard that shows the Average DaysToResolve issues created this week, last week, etc. I have tried AVERAGEIF, SUMIF/COUNTIF, etc. Something like: =AVERAGEIF({DaysToComplete}, ({ResolvedOn}, @cell >= (today()-weekday(today())-6))). Everything I have tried results in #Unparseable or #Incorrect Argument. I have looked at dozens of other questions and answers and haven't found anything that would work for this situation. Sure wish I could just write my own query!
Best Answer
-
Try something along the lines of...
=AVG(COLLECT({DaysToComplete}, {ResolvedOn}, @cell >= TODAY() - WEEKDAY(TODAY())-6))
Answers
-
Try something along the lines of...
=AVG(COLLECT({DaysToComplete}, {ResolvedOn}, @cell >= TODAY() - WEEKDAY(TODAY())-6))
-
That worked! Posting the full formula I used for the benefit of the community:
=AVG(COLLECT({DaysToResolve}, {SubmittedOn}, @cell < TODAY() - WEEKDAY(TODAY()) + 1, {SubmittedOn}, @cell >= TODAY() - WEEKDAY(TODAY()) - 6, {Resolved}, 1, {ResolvedOn}, @cell < TODAY() - WEEKDAY(TODAY()) + 1, {ResolvedOn}, @cell >= TODAY() - WEEKDAY(TODAY()) - 6))
I'm averaging DaysToResolve for issues that were both submitted and resolved during the last calendar week.
Thank you!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 494 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!