Alteryx Designer Desktop Discussions

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

Multi Row ID Grouping

PWaicus
7 - Meteor

Hi - I have a dataset where the [User ID] field could be similar across a various number of rows (they are not duplicate records, as other fields are different).  I just want to assign a unique number to any row or groups of rows with matching [User ID].  So if there are 3 rows with [User ID]="123", they would all get a new ID field with the same number, as shown below.

 

User ID     Record ID

123           1

123           1

456           2

789           3

789           3

789           3

789           3

3 REPLIES 3
MarqueeCrew
20 - Arcturus
20 - Arcturus
If you use a multi row formula tool you can check to see if user equals row-1 user. If equal assign row-1 I'd. Otherwise row-1 I'd plus 1.

Sorry about iPhone answer.

Cheers,

Mark
Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
JosephSerpis
17 - Castor
17 - Castor

Hi @PWaicus if you use this syntax "IF [User ID]=[Row-1:User ID] THEN [Row-1:Rank] ELSE [Row-1:Rank]+1 ENDIF" in the Multi Row tool it should produce the output you described.

 

MultiRow100819.JPG

PWaicus
7 - Meteor

Thank you!!!

Labels