Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Variable Multi Row Formula? Batch Macro?

eaphymao
7 - Meteor

Hello Alteryx Community,

 

I'm trying to figure out how much demand there would be remaining for a style after I replenish it. My challenge is the lead time to replenish varies from style to style. If it were all fixed, i'd filter my data set and summarize the forecast for weeks after the current week + weeks to replenish, but how to I calculate each style separately? Would it be a batch macro?

 

Example of data below:

WeekStyle End WeekStyleForecastWeeks to ReplenishDemand after Replenishment
17Apple10320
27Apple2318
37Apple3312
47Apple232
57Apple630
67Apple1030
77Apple230
17Orange8419
27Orange7411
37Orange849
47Orange440
57Orange840
67Orange240
77Orange940

 

How would I calculate this? Am I on the right track?

 

Cheers

1 REPLY 1
eaphymao
7 - Meteor

Figured it out! Iterative macro to calculate the remaining demand for a single row. Then nest that iterative macro in a batch macro grouping by style. 

Labels