Forum Discussion
Split start time and end time into multiple rows based on shift
- Anonymous5 years ago
try this and let's know
try this and let's know
- ANerat5 years agoRegular Visitor
Thank your for solution. I haven't yet tried with my data but it should work. Can you please walk me through your steps? I'd like to understand better for future uses. Would this work with 12h shifts for example?
- Anonymous5 years agoNot applicable
try to adapt and see what is appening .
replace "08" with "12".
consider that where there is a product of 3 it is, in effect, of 24/8. In the hypothesis of two shifts of 12 hours, 24/8 becomes 24/12 = 2.
Regarding the explanation, it depends on your level of knowledge.
I can explain the basic idea of the solution or even the implementation details (there are also possibilities of different solutions using the List.generate function).
If you try to study it and then say where it is not clear to you, perhaps the explanation could be more effective.
- ANerat5 years agoRegular Visitor
Thanks for your explanation. I'm not too familiar with M but so far I can follow the transformations. Accepted as solution.
- gvlado3 years agoAdvocate III
It works 0K
I tried to modify it to work with shifts like this:
Shift 1 => 07:00 - 15:00
Shift 2 => 15:00 - 23:00
Shift 3=> 23:00 - 07:00 (next day)
but couldn't find the solution,
Can you, or someone, help, please?
Thanks