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
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!