Alteryx Designer Desktop Discussions

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

When same value come alteryx provide next numeric value

amitsingh2993
5 - Atom

Hi All,

 

how we can provide next numeric value when value in next column repeat.

 

Input:

 
 
Field1
Uid
pass
Number
Details
Uid
pass
Number
Home
Uid
pass
Number
Details

 

 

output:

Field1New Field
Uid1
pass0
Number0
Details0
Uid2
pass0
Number0
Home0
Uid3
pass0
Number0
Details0

 

Thanks

4 REPLIES 4
ShankerV
17 - Castor

Hi @amitsingh2993 

 

This can be achieved with 2 multirow formula tools.

 

In the first Multi row formula tool use the below expression:

IF [Field1]="Uid"
THEN [Row-1:New Field]+1
ELSE [Row-1:New Field]
ENDIF

 

Make sure you select the option Create New Field.

 

In the second Multi row formula tool use the below expression:

IF [Field1]="UID"
THEN [New Field]
ELSE 0
ENDIF

 

Make sure you select the option Update Existing Field option.

 

Then run the workflow to get your result.

 

Many thanks

Shanker V

BRRLL99
11 - Bolide

Use Multi row formula 

and create new field with this formula

IF [Field1] = 'Uid' THEN
ToString(ToNumber([Row-1:New Field])+1)
ELSE
'0'
ENDIF

rohit782192
11 - Bolide

This can be achievabke using Running Total. You will get a set of Output of 1 , 2 ,3 ... for Every Start and End Record.

binuacs
20 - Arcturus

@amitsingh2993 Another option using tile tool

image.png

Labels