Alteryx Designer Desktop Discussions

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

How to create unique ids for unique items

Shelaj
6 - Meteoroid

Hi,

 

I'm looking to create a unique ids using my process_id 

Shelaj_1-1610029970548.png

 

and I want the unique ids to be start again once the process ids changes as shown below

 

Shelaj_2-1610030066645.png

Kindly help 🙂

7 REPLIES 7
Ladarthure
14 - Magnetar
14 - Magnetar

Hi @Shelaj,

 

You can use a multi-row formula:

and just tick the group by session. and have a formula like [row-1:id]+1

 

(find an example attached)

AshleyL
Alteryx
Alteryx

Hi @Shelaj --

 

After you use the multi-row formula, you can convert the number into a string using a formula to add the S and 0 to the UID like described in your question.

 

I've attached a workflow with the multirow and formula configuration.

 

Best,

Ashley

DavidP
17 - Castor
17 - Castor

I like using the Tile tool for this kind of thing

 

DavidP_0-1610031708504.png

 

Shelaj
6 - Meteoroid

Hey David,

 

Thanks for the solution, it worked totally fine 🙂

Shelaj
6 - Meteoroid

Hey AshleyL

 

Thank you very much, the solution worked well 🙂

Shelaj
6 - Meteoroid

Hey Arthur

 

Thank you very much for the solution, provided solution worked great 🙂

ll98
9 - Comet

I have something similar where I want to add a unique value to multiple columns to make them unique to the DB.

 

LEIDInvestor IDTransaction IDBatch IDFund ID
195458766859789514566
     
US1-195US1-458766US1-859US1-7895US1-14566

 

So I would want like a prefix into some of the columns of the report

Labels