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
- Smartsheet Customer Resources
- 64.2K Get Help
- 416 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!