I have a dataset that contains one row for each product. In each row, there is a date column which signifies the start of a certain testing phase, and a date column which signifies the end of that testing phase.
In order to enable weekly capacity planning, I want to generate a row for each week in that given time interval.
Here’s a short example for better understanding:
product start of testing end of testing
x 01/03/2020 15/04/2020
y 25/01/2020 10/03/2020
z 09/06/2020 18/08/2020
should result in
product start of testing end of testing Week
x 01/03/2020 15/04/2020 2020_09
x 01/03/2020 15/04/2020 2020_10
x 01/03/2020 15/04/2020 2020_11
x 01/03/2020 15/04/2020 2020_12
x 01/03/2020 15/04/2020 2020_13
x 01/03/2020 15/04/2020 2020_14
x 01/03/2020 15/04/2020 2020_15
x 01/03/2020 15/04/2020 2020_16
…
Is there any possibility to do that?
I tried to find a solution with some kind of loop, but I did not find any possibility to end the iterations within the given time frame.
Thanks a lot in advance!