Alteryx Designer Desktop Discussions

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

Sequencing from next instruction

benjaviver
6 - Meteoroid

Hi everybody, my really first message to the community :-).

 

I have this table (below):

 

I want to start with my first record because Seq is on 1.

My second column refer to the next ID (7220971 which is record 8). 

I want to tag my Seq field on record 8 at "2"

Then follow the next instruction  (7235626 = record 12) and put Seq at "3"

Until my nextmvmtinstrid = 0

 

See the willing result under the first table

 

Any idea how coud I get this instruction ? (Multi row formula ?)

 

Many thanks, 


Benjamin

 

 

 idnextmvmtinstridSeq
1719935872209711
271980060 
372046250 
472096090 
572096107209609 
672183300 
772183317218330 
872209717235626 
972342850 
1072342927234285 
1172347057259671 
1272356267234705 
1372596700 
1472596717259670 
 
1719935872209711
271980060 
372046250 
472096090 
572096107209609 
672183300 
772183317218330 
8722097172356262
972342850 
1072342927234285 
11723470572596714
12723562672347053
13725967006
14725967172596705
2 REPLIES 2
marcusblackhill
12 - Quasar
12 - Quasar

Hi @benjaviver !

 

Probably you will need to do a iterative macro, where you will organize them and put your seq number. If you need to return to the same original order of the data after you put you seq number, you just need to put a Record ID before begin you iterative macro and after the macro you sort again by ID.

 

If you don't know about iterative macros, here a example and some content to you can learn about.

https://help.alteryx.com/current/designer/iterative-macro

benjaviver
6 - Meteoroid

Many thanks for this solution & example :-).

It was a quick answer.

Labels