Missed the Q4 Fall Release Product Update? Watch the on-demand webinar for more info on the latest in Designer 24.2, Auto Insights Magic Reports, and more!
Free Trial

Alteryx Designer Desktop Discussions

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

Repeat RecordId based on row sequence

ste_demi
8 - Asteroid

Hi All,

 

is there a way to have a new column that repeats RecordIDs when the sequence of row contents starts again? As you can see, the content of column 1 restarts again after 17 records. I would like something similar like in Column 2

Column1Column2

Filename1
MD51
SHA11
CRC321
SHA-2561
SHA-5121
SHA-3841
Full1
Modified1
Created1
Entry1
File1
File1
Product1
Identical1
Extension1
File1
Filename2
MD52
SHA12
CRC322
SHA-2562
SHA-5122
SHA-3842
Full2
Modified2
Created2
Entry2
File2
File2
Product2
Identical2
Extension2
File2
4 REPLIES 4
apathetichell
19 - Altair

Use Multi-row formula - create a new integer field called column2

if [row-1:column1]=null() then 1 elseif [column1]='Filename' then [row-1:column2]+1 else [row-1:column1] endif

 

Might a bit off on my syntax but that's the general idea.

ste_demi
8 - Asteroid

Apologies but I fear I have confused the query. I have, at the moment, one column (RegExOut1). If I use RecordID tool, it will generate unique numbers; however, as you can see from the pattern, the values in RegExOut1 repeat. I would like to have a recordID that only changes when the pattern restarts again. Hence the table of my initial post where I have recreated the result I am looking for in Column2. Does it make sense?

RegExOut1

FILENAME 
MD5 
SHA1 
CRC32 
SHA-256 
SHA-512 
SHA-384 
FULL PATH 
MODIFIED TIME 
CREATED TIME 
ENTRY MODIFIED TIME
FILE SIZE 
FILE VERSION 
PRODUCT VERSION 
IDENTICAL 
EXTENSION 
FILE ATTRIBUTES 
FILENAME 
MD5 
SHA1 
CRC32 
SHA-256 
SHA-512 
SHA-384 
FULL PATH 
MODIFIED TIME 
CREATED TIME 
ENTRY MODIFIED TIME
FILE SIZE 
FILE VERSION 
PRODUCT VERSION 
IDENTICAL 
EXTENSION 
FILE ATTRIBUTES 
Yoshiro_Fujimori
15 - Aurora
15 - Aurora

Hi @ste_demi ,

 

Does this expression in Multi Row Formula tool make sense?

 

IF [RegExOut1] = "FILENAME"
THEN [Row-1:RecordID] + 1
ELSE [Row-1:RecordID]
ENDIF

ste_demi
8 - Asteroid

Brilliant. It works like a charm

Many thanks

Labels
Top Solution Authors