Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Creating a Dynamic Group

AL3XE167
6 - Meteoroid

Hi, 

 

I am trying to group a sequence of numbers. Currently I only have Fields 1 and 2 in my data. Once Field 2 reaches 6 I want Field 3 to start a new grouping as demonstrated below. 

 

I'm sure its probably a multi-row formula but I cant think of how it needs to be configured. Any ideas welcome. 

 

Thanks in advance

Alex

 

 

Field1Field2Field3
111
221
331
441
551
661
712
822
932
1042
1152
1262
1313
1 REPLY 1
atcodedog05
22 - Nova
22 - Nova

Hi @AL3XE167 

 

Here is how you can do it. Multi-row formula tool

 

 

IF [Row-1:Field2]=6 
THEN [Row-1:Field3]+1 
ELSEIF IsNull([Row-1:Field2])
THEN 1 
ELSE [Row-1:Field3] ENDIF

 

  

Workflow:

atcodedog05_0-1625832543440.png

 

Hope this helps 🙂

Labels
Top Solution Authors