My Current Dataset is
Month // MonthOnBook // ClickMonth // ClickRate
2017-05 23 4 14.982306
2017-05 23 18 19.253211
2017-05 23 22 19.793899
2017-06 22 3 20.346334
2017-06 22 5 22.545454
I want the new dataset to be something like below
2017-05 23 1 0.00
2017-05 23 2 0.00
2017-05 23 3 0.00
2017-05 23 4 14.982306
2017-05 23 5 14.982306
2017-05 23 6 14.982306
....
2017-05 23 17 14.982306
2017-05 23 18 19.253211
2017-05 23 19 19.253211
...
2017-05 23 21 19.253211
2017-05 23 20 19.793899
2017-05 23 21 19.793899
....
2017-05 23 34 19.793899
2017-05 23 35 19.793899
now same thing for next month but as it has been on books for 22 months, there would be 22 rows..
How do i do that ?
Any help or guide is really appreciated