Days without incident counter
Hello,
I would like to put a Days Without Incident counter on my dashboard.
I would like to count the days from the last incident (RED bubble in the Risk column) to today.
Best Answer
-
@DKazatsky2 's formula works on each row and would give you days since the Date of Incident. Like this:
It sounds like you might want the number of days since the most recent incident and also only want to count the days since the Red risk. You could do this if you sort the sheet and look at the row that is most recent and red. Or you can do this with a longer formula.
For that there is an extra step. You will also need this formula
=MAX(COLLECT([Date of Incident]:[Date of Incident], Risk:Risk, "Red"))
This will find the most recent Date of Incident in the list, where the Risk is Red.
If you combine that with Dave's formula (replacing the cell reference with this new formula), you have:
=TODAY() - MAX(COLLECT([Date of Incident]:[Date of Incident], Risk:Risk, "Red"))
This is today's date minus the most recent date where the risk was red, in days.
#TeamWorkMakesTheDreamWork
Answers
-
-
@DKazatsky2 's formula works on each row and would give you days since the Date of Incident. Like this:
It sounds like you might want the number of days since the most recent incident and also only want to count the days since the Red risk. You could do this if you sort the sheet and look at the row that is most recent and red. Or you can do this with a longer formula.
For that there is an extra step. You will also need this formula
=MAX(COLLECT([Date of Incident]:[Date of Incident], Risk:Risk, "Red"))
This will find the most recent Date of Incident in the list, where the Risk is Red.
If you combine that with Dave's formula (replacing the cell reference with this new formula), you have:
=TODAY() - MAX(COLLECT([Date of Incident]:[Date of Incident], Risk:Risk, "Red"))
This is today's date minus the most recent date where the risk was red, in days.
#TeamWorkMakesTheDreamWork
-
Thank you! This worked perfectly!
-
Great news @Amanda MedinaIW !
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.3K Get Help
- 364 Global Discussions
- 199 Industry Talk
- 428 Announcements
- 4.4K Ideas & Feature Requests
- 136 Brandfolder
- 127 Just for fun
- 128 Community Job Board
- 445 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!