I really hope you can help me with this problem, which seems pretty complicated for me.
Dealid: DealprojectStartDate: expectedhours:
3534 2021-01-01 200
What I want is to split the weightamount out on different month in the future based on the expected number of hours.
I have following distribution key for expected hours:
0-500 = 2 month
500-1500 = 4 month
1500 - 4000 = 6 month
4000 - above = 8 month.
So forexample: in the above observation the start date is 01/01 and expected hours of 100 therefore weightamount should be split over 2 month -> Month 1 = 100 and Month 2 = 100.
Important note: If it is the first of the month then it should be allocated to that month. So for the above exapmle because it is the first of the monst (01/05) then it should be allocated to month 5 and 6, but if the start date wat 07/05 then i should have been allocated to month 6 and 7.
What i think would work if to get a new tabel that would split above observation into this:
Dealid: allocation date: expectedhours:
3534 2021-01-01(jan) 100
3534 2021-02-01(feb) 100
Hope you guy can help. Thanks
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…