Start Free Trial

Alteryx Designer Desktop Discussions

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

Batch / Iterative Macro Loop through a table

raphagaitano
5 - Atom

Hi, I was starting in Alteryx and I have a question.

 

I wanted to create a Macro that would scroll through a table with a "dynamic loop", for example:

 

Table A:

DATEHOURNUMBER
23/03/202007:30:003
23/03/202008:30:002
24/03/202008:30:004
25/03/202007:30:005
25/03/202008:00:002
26/03/202007:30:006
26/03/202008:00:002

 

Table B:

IDDATEHOUR
123/03/202007:30:00
223/03/202007:30:00
323/03/202007:30:00
423/03/202007:30:00
523/03/202008:30:00
623/03/202008:30:00
723/03/202008:30:00
823/03/202008:30:00
923/03/202008:30:00
1023/03/202008:30:00

 

Table Result:

IDDATEHOURY/N
123/03/202007:30:00Y
223/03/202007:30:00Y
323/03/202007:30:00Y
423/03/202007:30:00N
523/03/202008:30:00Y
623/03/202008:30:00Y
723/03/202008:30:00N
823/03/202008:30:00N
923/03/202008:30:00N
1023/03/202008:30:00N

....... (others days)

 

Relate by date and time and create Y/N.

Notice that the Y appears referencing the quantity in table A... If the quantity is greater than the number in table A, the N appears in the remainder.

 

Your collective help in setting me straight would be appreciated.

4 REPLIES 4
Qiu
21 - Polaris
21 - Polaris

@raphagaitano 

Hope this is what you need.

0202-raphagaitano.PNG

raphagaitano
5 - Atom

Thank you very much, you were awesome!

Qiu
21 - Polaris
21 - Polaris

@raphagaitano 

Glad to help and would appreciate it if you could mark it as accept.

raphagaitano
5 - Atom

Done, sorry

Labels
Top Solution Authors