In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
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