I am trying to get assign a marker when a car doesn't travel for more than 10 days in a row.
See Table below (Marker column)
| Car | Date | Distance | Marker |
| 1 | 01/01/2019 | 300 | |
| 1 | 02/01/2019 | 50 | |
| 1 | 03/01/2019 | 0 | 1 |
| 1 | 04/01/2019 | 0 | |
| 1 | 05/01/2019 | 0 | |
| 1 | 06/01/2019 | 0 | |
| 1 | 07/01/2019 | 0 | |
| 1 | 08/01/2019 | 0 | |
| 1 | 09/01/2019 | 0 | |
| 1 | 10/01/2019 | 0 | |
| 1 | 11/01/2019 | 0 | |
| 1 | 12/01/2019 | 0 | |
| 1 | 13/01/2019 | 0 | |
| 1 | 14/01/2019 | 0 | |
| 1 | 15/01/2019 | 0 | |
| 1 | 16/01/2019 | 0 | |
| 1 | 17/01/2019 | 400 | |
| 1 | 18/01/2019 | 500 | |
| 2 | 01/01/2019 | 350 | |
| 2 | 02/01/2019 | 0 | |
| 2 | 03/01/2019 | 0 | |
| 2 | 04/01/2019 | 0 | |
| 2 | 05/01/2019 | 0 | |
| 2 | 06/01/2019 | 500 | |
| 2 | 07/01/2019 | 550 | |
At the moment I am using this formula in a Multi-row formula tool:
(I later remove the excess 1's so just left with a 1 a the start of the period of inactivity)
At the moment though my formula assigns a 1 for Car 2 but it shouldn't.
IF [Distance] <50
AND
[Row+1:Distance] < 1
AND
[Row+2:Distance] < 1
AND
[Row+3:Distance] < 1
AND
[Row+4:Distance] < 1
AND
[Row+5:Distance] < 1
AND
[Row+6:Distance] < 1
AND
[Row+7:Distance] < 1
AND
[Row+8:Distance] < 1
AND
[Row+9:Distance] < 1
AND
[Row+10:Distance] < 1
THEN
1
ELSE
0
ENDIF
If there is (there definitely is) another way of doing please please could i have some suggestions
Thanks
James