Alteryx Designer Desktop Discussions

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

Add an index number to data

HarryC22
5 - Atom

Hi, I'm trying to add an index that increments by one for each change in customer:

 

My data

 

account_no
10545321
10545321
17735208
17735208
56193802
64266537
64266537
64266537

 

My desired result

 

account_noindex
105453211
105453211
177352082
177352082
561938023
642665374
642665374
642665374

 

Thanks!

3 REPLIES 3
JosephSerpis
17 - Castor
17 - Castor

Hi @HarryC22 you can use a multi-row tool for this to check the account number above and if the same use the same Index/rank number if it doesn't meet this criteria add 1. This can all be done in a condtional/IF formula in the Multi-Row tool.

 

Multi_Row_12072022.JPG

grazitti_sapna
17 - Castor

@HarryC22, you can use the tile tool to achieve the same.

grazitti_sapna_0-1657610831457.png

 

grazitti_sapna_0-1657610768975.png

 

Thanks!

Sapna Gupta
binuacs
20 - Arcturus

@HarryC22 One way of doing this with the multi-row tool

binuacs_0-1657613094202.png

 

Labels