suppose i have a dataset
Sc_no perf date
A000855A -0.28305 30112018 A000855A 0.49306 30092018 A000855A 2.14955 31032019 A000855A 2.53133 31072018 A000855A 4.19303 31012019 A000856A -0.28305 30112018 A000856A 0.49306 30092018 A000856A 2.14955 31032019 A000856A 2.53133 31072018 A000856A 4.19303 31012019
My task is I want to create another dataset and having same field from the above dataset i.e.,
Sc_no perf Date
but there should be 61 rows for every distinct Sc_no. Example: for A000855A Sc_no there should be 61 rows. Similarly if there is 2 distinct sc_no then there will be 61*2=122 rows will be there. And The date values should dynamic i.e., there will be 61 rows of one distinct sc_no and the date should be dynamically change from 30th april 2020 i.e., the last date of this month to 61 month back i.e., 31st march 2015. How can I do and that should NOT be hard coded.
Edited
... View more