In my mind I know what I want to accomplish but I'm not an advanced user enough to know how to get there.
Have a start & cancel date on a purchase order. If the range is greater than 1 month I want to evenly split the cost value over the 2 or more months in which it covers. The end result is a report that shows how many dollars are expected to be spent/received in each month thus a grouping by month.
My one inclination is to create a variable based on the date range(s) which I've done with the following equation.
numberVar OTBcode;
if {@OTBdays} <=45 then 1 else
if {@OTBdays} <=62 then 2 else
if {@OTBdays} <=91 then 3
else 4
But then my brain stops & can't figure out how to use this variable other than saying if the otbcode = 2 then cost/2 but then I don't know how to address the allocation part of what I'm trying to accomplish.
Yes I know I'm in way over my head but it seems like it should be 'doable'.
Thanks as always.
Gina
Have a start & cancel date on a purchase order. If the range is greater than 1 month I want to evenly split the cost value over the 2 or more months in which it covers. The end result is a report that shows how many dollars are expected to be spent/received in each month thus a grouping by month.
My one inclination is to create a variable based on the date range(s) which I've done with the following equation.
numberVar OTBcode;
if {@OTBdays} <=45 then 1 else
if {@OTBdays} <=62 then 2 else
if {@OTBdays} <=91 then 3
else 4
But then my brain stops & can't figure out how to use this variable other than saying if the otbcode = 2 then cost/2 but then I don't know how to address the allocation part of what I'm trying to accomplish.
Yes I know I'm in way over my head but it seems like it should be 'doable'.
Thanks as always.
Gina