Alteryx Designer Desktop Discussions

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

Indexing with Multi Row Formula

bdoni001
8 - Asteroid

Hello everyone.

 

Need a help here.

 

I want to create an indexing list as follows:

bdoni001_0-1669606376844.png

 

The goal is that everytime the value in the reference column changes, the RecordID restarts back to 1.

 

Anyone can give some suggestions on how to achieve this?

 

Thank you!

5 REPLIES 5
apathetichell
18 - Pollux

tile tool.

Unique value

reference

 

tile sequence number is your recordid - no multi-row formula needed

 

 

 

but for fun - what you'd do is group by reference and set values that don't exist as equal to null() in the multi-row formula options

 

if [Row-1:Reference]=null() then 1 else [Row-1:Reference]+1 endif

 

if you won't want to set values that don't exist to equal null() you can do if [Row-1:Reference]!=[Reference] then 1 else [Row-1:Reference] endif

 

the key is seeing where the values change either before the row before doesn't exsit or the value of refrence-1 isn't equal to reference.

bdoni001
8 - Asteroid

"tile sequence number is your recordid"

 

Does this mean I need to tick 'RecordID' in the Group by Columns?

apathetichell
18 - Pollux

No. The column you have above called RecordID is the RESULT of your Tile tool Tile calls it TileSequenceNumber. Reference is your group by column.

KrishnaChithrathil
11 - Bolide

@bdoni001 Is this you want?

Input:

KrishnaChithrathil_0-1669611150587.png

 

Output:

KrishnaChithrathil_1-1669611195616.png

 

DenisZ
11 - Bolide

Please see attached workflow which solves it with the asked multi row formula

 

DenisZ_0-1669615954055.png

 

Please mark it as solved if it solves the issue. 

 

 

 

Labels