Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Loop

Rafa
5 - Atom

Hello,

I have a problem. I wanna order lines with following logical: I want to consum stock as first (always ID 1) and only when line goes to negative I want to use PO line.

I'm able to do it just manually. My goal is to make this loop automatic. I could have more then 10 PO lines.

Attached the flow I prepared. Is it the right way or not?

Pls help me!

 

TO BE

 

IDTYPEQTQT AVAILABLE
1STOCK88
2REQ-26
3REQ-24
4REQ-22
7REQ-20
5PO44
8REQ-40
6PO44
9REQ-22
10REQ-20
1 REPLY 1
abacon
12 - Quasar

@Rafa I would look into iterative macros, here is a video on how to set one up. Basically you have it go through each line of your workflow, and do the conditions you are wanting.

In the meantime, you want it to start on Stock, then go through each Req until the QT available is negative, once that happens, jump to the next PO, and repeat, correct?

 

https://www.youtube.com/watch?v=AByfTPqrUrQ

 

Bacon

 

Learn all about Iterative Macros in Alteryx with Molly Hatch Links ---------------------------- - Macro file at https://til.bi/MollysIterativeMacro - https://www.thedataschool.co.uk/marc-reid/creating-iterative-macro-alteryx/ - ...
Labels
Top Solution Authors