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

Alteryx Designer Desktop Discussions

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

Adding Identifier

dunkindonut7777
8 - Asteroid

Hi I want to know if how can I add a ascending order identifier of each line just like the fill in series function in excel. I want to add a number every location. See sample below:

 

CodeLocationIdentifier (Expected Output)
11111CaliforniaCalifornia1
11111CaliforniaCalifornia2
22222OhioOhio1
22222OhioOhio2
44444TexasTexas1
44444TexasTexas2

 

How can I add another identifier column considering there are thousands of lines reflected in the data? Thank you so much for the helo

4 REPLIES 4
Raj
16 - Nebula

Use multifield formula tool to achieve this output

Raj
16 - Nebula

PFA

FinnCharlton
13 - Pulsar

Hi @dunkindonut7777 , here's how you accomplish this:

 

image.png

 

We start by creating a unique identifier for each duplicate location. We can do this with the multi-row formula tool grouped by location - doing this we ensure we start counting again for each new location. We can then use a formula tool to create the Identifier column.

binuacs
21 - Polaris

@dunkindonut7777 Another method using Tile tool

image.png

Labels