I have a request to take 8 weeks of forecast and pull out each one separately to use in a calculation. I am trying to use a where clause in my variable with no luck.
Here is the details:
Week measure from DB returns current week
Query that returns week and forecast for the current week plus 8 weeks.
I need to create the following variables:
current week forecast - Inventory
(current week forecast + current week + 1 forecast) - Inventory
(current week forecast + current week + 1 forecast + current week + 2 forecast) - Inventory
AND SO ON FOR NEXT 8 weeks
I created a variable for each of the 8 weeks to pull out the forecast seperatly but it’s not working like I expect it too. My formula includes:
wk1forecast = forecast WHERE (weekinyear = currentweek)
I am getting a multivalue error when I try this.
How can I pull out each forecast into a separate variable?
Thanks for the idea but it isn’t working. I am getting a Multivalue result. I added a ForEach to the statement to help restrict the summing but that isn’t working either.