SOLVED
How to increment number based on the previous value
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
akanchar
5 - Atom
‎01-06-2022
02:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
Customer | ID |
C1 | 28 |
C2 | |
C3 | |
C4 | |
C5 |
Required Output
Customer | ID |
C1 | 28 |
C2 | 29 |
C3 | 30 |
C4 | 31 |
C5 | 32 |
Solved! Go to Solution.
Labels:
- Labels:
- Developer
2 REPLIES 2
17 - Castor
‎01-06-2022
03:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
‎01-06-2022
04:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
This worked. Thank you
