We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

For and while loop on a table

Alteryxnewbie27
6 - Meteoroid

Hello All,

 

I am new to Alteryx , trying to implement for and while loop together on 2 fields in a table. Could somebody please help me with this.

 

Goal is to run a loop on table 1 and get table 2 as output. Am trying to run a for loop on Act field, count the number of rows between N to N , average the Volume field for the same number of rows. Repeat the same until the last row of the Act field.

Alteryxnewbie27_1-1673022055532.png

Alteryxnewbie27_2-1673022077660.png

 

 

 

5 REPLIES 5
gautiergodard
13 - Pulsar

hey @Alteryxnewbie27 

I believe you could achieve this result using the summarize tool.

See attached for a sample using a similar dataset as your screenshot!

gautiergodard_0-1673022721510.png

 

Hope this helps! Please mark this post as a solution if it answered your questions.

Felipe_Ribeir0
16 - Nebula

Hi @Alteryxnewbie27 

 

One way of doing this

 

Felipe_Ribeir0_0-1673023030222.png

 

mpizzorusso
7 - Meteor

I agree with @Felipe_Ribeir0  that a multirow tool is the way to go

Alteryxnewbie27
6 - Meteoroid

@ Felipe_Ribeir0, Thanks for you help. It worked!!

muhammadimranhakimi
6 - Meteoroid

Thanks for the discussion!

Labels
Top Solution Authors