Alteryx Designer Desktop Discussions

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

How to increment number based on the previous value

akanchar
5 - Atom

Hi Team, 

 

I am looking for a solution in Alteryx designer. I want to increment the value in ID column based on the available number. can someone please advise?

 

Input 

CustomerID
C128
C2 
C3 
C4 
C5 

 

Required Output

CustomerID
C128
C229
C330
C431
C532
2 REPLIES 2
Luke_C
17 - Castor

Hi @akanchar 

 

You could use a multi-row formula tool. See below, if the ID field is blank it looks to the previous row's value and adds 1. 

Luke_C_0-1641512003483.png

 

akanchar
5 - Atom

This worked. Thank you

Labels