Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Loop on column

Tid14
8 - Asteroid

Hi in my WF I have data as

 

Account number |  Rule Name  |   Unique

63725.                        hss               1234  

54642.                        dds                5678 

67664.                        osa                 9012

39444                         ysc                 3456

67661                          hsd                6272

76646                         psj                  8281

75343                          bs                  2113

34367                         hsd                 9201

57646                         hsj                  7721

46616                        usd                   9232

64661                        sja                    8382

69644                        hsj                     3382

 

Now I want to make a loop on Unique Column so that its value repeats after every 4 records ( from 1234 to 3456) and rest data of Unique column is not required.

How I can do that?

 

Output should look like example:

 

Account number |  Rule Name  |   Unique

63725.                        hss               1234  

54642.                        dds                5678 

67664.                        osa                 9012

39444                         ysc                 3456

67661                          hsd                1234

76646                         psj                  5678

75343                          bs                  9012

34367                         hsd                 3456

2 REPLIES 2
DawnDuong
13 - Pulsar
13 - Pulsar

hi @Tid14 

Not sure what use case this is... but if just need to get the desired output, a simple Multirow tool can do that.

You can set the tool to "update existing column" and such that the values always refer to [Row-4]. Be careful with the setting when row does not exist, need to keep the existing value.

Dawn.

drew9
9 - Comet

Hi @Tid14 , 

 

An easy solution would be to set a RecordID and then use a multi-row formula as shown below.

 

drew9_0-1634225417452.png

 

Labels