Alteryx Designer Desktop Discussions

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

Assigning Incremental Counter

alibink
7 - Meteor

I have looked around in the community posts but couldn't find this solution. 

I have a dataset like 

 

Account 
A 
A 
A 
A 
A 
A 
A 
A 
A 
A 
A 
A 
A 
B 
B 
B 
C 
C 
C 
C 
C 
D 
D 
D 
D 
D 
D 
D 
D 
D 
D 
E 
E 

 

and I want an output like the following

 

AccountRequired Field
A1
A2
A3
A4
A5
A1
A2
A3
A4
A5
A1
A2
A3
B1
B2
B3
C1
C2
C3
C4
C5
D1
D2
D3
D4
D5
D1
D2
D3
D4
D5
D1
E1
E2

 

Criteria: 

The Counter in the 'Required Field' gets reset after:

  1. On the 6th Record of Same Account or if 
  2. The Account Changes before the counter could reach to 5

 

Any help would be much appreciated. 

 

I saw similar solution where the requirement of people was just to reset the number based on value in Account and it could be done using Unique Value of Tile Tool but here we have another criteria to forcefully restart numbering if counter reaches 5. I am attaching my incomplete workflow as well if that helps? Please note that in the attached workflow, I have setup the reset counter value at 7 not 5. 

 

 

 

3 REPLIES 3
DanM
Alteryx Community Team
Alteryx Community Team

@alibink  check this tool out https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Tool-Mastery-Multi-Row-Formula/ta-p...

 

you also have samples of this tool and how to create what you want under the Help in Designer. You can also take an interactive lesson on how to use the tool as well. It is a function that you will create to basically say by group start with 1 and add 1 until the group ends.

binuacs
20 - Arcturus

@alibink One way of doing this with the Tile Tool

 

binuacs_0-1666129830959.png

 

Qiu
20 - Arcturus
20 - Arcturus

@alibink 
One way to use Multi-row formula as below.

1019-alibink.PNG

Labels