Hi all. ı have two charts .. first chart has 2 columns : date /worker id number. (date column represents date of occupational accident)
for example ;
25/01/2023 5136785
10/04/2023 5139188
25/05/2023 5139188
19/09/2023 5127902
22/11/2023 5127902
22/11/2023 5139188
and in the second chart ı have 2 columns : dates / worker id number. (date column represents the dates that workers who cannot work due to accident and have medical report)
for example;
26/01/2023 5136785
27//01/2023 5136785
11/04/2023 5139188
12/04/2023 5139188
13/04/2023 5139188
25/05/2023 5139188
26/05/2023 5139188
23/11/2023 5139188
24/11/2023 5139188
25/11/2023 5139188
26/11/2023 5139188
27/11/2023 5139188
20/09/2023 5127902
21/09/2023 5127902
25/11/2023 5127902
26/11/2023 5127902
27/11/2023 5127902
now my problem is that ı need a third column in the first chart consist of how many days they couldnt work due to accident
for example;
25/01/2023 5136785 2
10/04/2023 5139188 3
25/05/2023 5139188 2
19/09/2023 5127902 2
22/11/2023 5127902 3
22/11/2023 5139188 5
one trick you should realise that the day when they have accident and the day when their rest starts are not the always same. their rest start with medical report and they take the report in sameday or in 1-3 days after accident.
and other trick is that in their resting period sometime a gap between dates . in other words dates are not always successive. but resting days belong to first accident is always before the date of second accident in reason.
thank you
Bookmarks