Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start 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