Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Community is experiencing an influx of spam. As we work toward a solution, please use the 'Notify Moderator' option on the ellipsis menu to flag inappropriate posts.

Alteryx Designer Desktop Discussions

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

How can i make a custom record ID?

RNSEG
7 - Meteor

Current data set looks like this. 

 

RegionRowLinkIDNameValue
Share Summary21Column 412137.178
Share Summary21Column 51685.694
Share Summary21Column 6-12137.18
Share Summary21Column 70
Share Summary21Column 80
Share Summary21Column 90
Share Summary21Column 100
Share Summary22Column 43848.2388
Share Summary22Column 51586.5782
Share Summary22Column 60
Share Summary22Column 73848.2388
Share Summary22Column 81469.2983
Share Summary22Column 95654210.9
Share Summary22Column 10-0.0739
Share Summary23Column 42850.1095
Share Summary23Column 51685.694
Share Summary23Column 60
Share Summary23Column 72850.1095
Share Summary23Column 81561.2177
Share Summary23Column 94449641.3
Share Summary23Column 10-0.0738
Share Summary24Column 4535.7528
Share Summary24Column 51685.694
Share Summary24Column 60
Share Summary24Column 7535.7528
Share Summary24Column 81561.2177
Share Summary24Column 9836426.76
Share Summary24Column 10-0.0738
Share Summary25Column 41406.3729
Share Summary25Column 51685.694
Share Summary25Column 60
Share Summary25Column 71406.3729
Share Summary25Column 81561.2177
Share Summary25Column 92195654.2
Share Summary25Column 10-0.0738

 

I would like to add a column in between that basically has a sequential record ID for each Link ID numbers from 1 to 7 as below. What tools is the best for this? Any tips are appreciated. Below is my desired format. This is only a portion of a large data set, and Name column is not necessarily going to have the same number ordering (currently i have it still included for sorting but plan to remove it once i can add a new sequential record). I am thinking that the link ID column is the best to use to add this. 

 

RegionRowLinkIDNew ColumnNameValue
Share Summary211Column 412137.178
Share Summary212Column 51685.694
Share Summary213Column 6-12137.18
Share Summary214Column 70
Share Summary215Column 80
Share Summary216Column 90
Share Summary217Column 100
Share Summary221Column 43848.2388
Share Summary222Column 51586.5782
Share Summary223Column 60
Share Summary224Column 73848.2388
Share Summary225Column 81469.2983
Share Summary226Column 95654210.9
Share Summary227Column 10-0.0739
Share Summary231Column 42850.1095
Share Summary232Column 51685.694
Share Summary233Column 60
Share Summary234Column 72850.1095
Share Summary235Column 81561.2177
Share Summary236Column 94449641.3
Share Summary237Column 10-0.0738
Share Summary241Column 4535.7528
Share Summary242Column 51685.694
Share Summary243Column 60
Share Summary244Column 7535.7528
Share Summary245Column 81561.2177
Share Summary246Column 9836426.76
Share Summary247Column 10-0.0738
Share Summary251Column 41406.3729
Share Summary252Column 51685.694
Share Summary253Column 60
Share Summary254Column 71406.3729
Share Summary255Column 81561.2177
Share Summary256Column 92195654.2
Share Summary257Column 10-0.0738

 

Thank you!

 

4 REPLIES 4
TheMattLeonard
8 - Asteroid

You're definitely after the Tile tool. Select "Unique Value" as the Tile Method and select Row and LinkID as the Unique columns. Make sure to check the box for "Leave Unsorted" as that can sometimes mess up your results.

adamweaver39
9 - Comet

Hi @RNSEG -- I would say you can also use the formula tool with an ELSEIF condition statement that creates the new column with your desired translation.

It's a little more manual, but easy to do if the conversion is only for 7 values.

 

 

RNSEG
7 - Meteor

This worked exceptionally. I appreciate your help! THANK YOU!

RNSEG
7 - Meteor

Thank you for this tip - i did have a thought about doing this but the column and the # associated aren't consistent throughout the data set so wanted to avoid writing a ELSEIF for this one. 

Labels