Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

Alteryx Designer Desktop Discussions

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

Record ID with grouping

jesuisbo
8 - Asteroid

Hi all,

 

I've been trying to figure this out on my own but without any luck so far... 

 

I'm trying to apply the record ID 1 & 2 for every two lines/rows - in order for me to make a calculated field that assigns "left" to 1 and "right" to 2. The below table example shows what I'm trying to accomplish in the orange column. The counting would reset every new [GameNo].

 

match_idElapsedTimeSetNoGameNoPointNumberPointServerServeIndicatorserve_numberServe_#
2019-usopen-21010:13:0314201111
2019-usopen-21010:13:2814211112
2019-usopen-21010:13:4514221111
2019-usopen-21010:14:0214231112
2019-usopen-21010:14:3714241211
2019-usopen-21010:20:4416311111
2019-usopen-21010:21:2316321112
2019-usopen-21010:21:3916331111
2019-usopen-21010:22:1916341112
2019-usopen-21010:23:3416361211

 

I tried the multi-row formula, smart tiles, a lot of things, but I just can't seem to figure it out. 

 

Does anyone know what I should do?

 

Thank you!!

5 REPLIES 5
OllieClarke
15 - Aurora
15 - Aurora

Hi @jesuisbo a multi-row formula, grouped by GameNo, with the following formula should do it:

IF [row-1:serve_#]=1 THEN 2 ELSE 1 ENDIF

clipboard_image_0.png

jesuisbo
8 - Asteroid

Amazing - this worked! Thank you @OllieClarke!

CharlieS
17 - Castor
17 - Castor

The Tile tool is my favorite tool, so I've attached a workflow that shows how it can be used here.

 

- Use the "Unique Value" configuration to assign a Group By RecordID to each game.

- A Formula tool can convert the RecordID values into the requested "1/2" designations.  

chuck_bible84
5 - Atom

I knew there had to be a tool that did this, thank you!

Qiu
21 - Polaris
21 - Polaris
Labels