I'm trying to create rolling weekly onhand numbers.
I've gotten week 1 figured out but am now trying to figure out how to calculate the inventory position for week 2 by adding data to week 1.
I have 2 tables being pulled used:
PYactuals which has the weekly data
BOM which has the beg year starting data.
This get's me my starting point
BegData: IIf([week]=1,[SumOfhb_beg_retl]+[SumOfRetailOnHand],
But it's the 'else' part of this statement that I'm stumped on.
Reading through other threads I'm thinking dlookup could be the solution? But I'm not clear on the syntax & my guesses have errored out.
my gut thinks it should be
BegData: IIf([week]=1,[SumOfhb_beg_retl]+[SumOfRetailOnHand],dlookup([SumOfRetailOnhand],pyactuals, [week]+1)
I've never used Dlookup before so not really sure it's the right solution. Any help would be appreciated.
Thanks -
Gina
I've gotten week 1 figured out but am now trying to figure out how to calculate the inventory position for week 2 by adding data to week 1.
I have 2 tables being pulled used:
PYactuals which has the weekly data
BOM which has the beg year starting data.
This get's me my starting point
BegData: IIf([week]=1,[SumOfhb_beg_retl]+[SumOfRetailOnHand],
But it's the 'else' part of this statement that I'm stumped on.
Reading through other threads I'm thinking dlookup could be the solution? But I'm not clear on the syntax & my guesses have errored out.
my gut thinks it should be
BegData: IIf([week]=1,[SumOfhb_beg_retl]+[SumOfRetailOnHand],dlookup([SumOfRetailOnhand],pyactuals, [week]+1)
I've never used Dlookup before so not really sure it's the right solution. Any help would be appreciated.
Thanks -
Gina