Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

How to add Record # as a Column in Alteryx?

DataPsycho
7 - Meteor

Hi, 

I have a table for example:

NameActiveStartDate
a01990-19-02
a11990-20-05
b11990-20-05
.........

I want to add a new column to include the record # as RecordID. I tried with generate row tool. But it replicating with respect to the row and condition expression. I also can not delete condition expression. The result from generate row tool with RowCount <= 2 condition expression:

NameActiveStartDateRowCount
a02016-11-071
a02016-11-072
a12016-11-251
a12016-11-252
............

 

Or I do not know how to use it may be.

 

7 REPLIES 7
mborriero
11 - Bolide

Hi @DataPsycho.

 

Would you like just to add an incremental number? in that case you just need to use the Record ID tool.

Capture.JPG

 

 

 

 

MarqueeCrew
20 - Arcturus
20 - Arcturus
You will use a multi-row formula tool as:

Create RowCount (byte or int)

Group By = [Name]

Formula =
Row-1_RowCount + 1

Please note that my expression is approximate. I'm answering from my phone.

When you group by name, the problem almost solves itself with the tool. Adding one to the previous row starts you off with 1 for each new Name and keeps adding one.

Cheers,

Mark
Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
DataPsycho
7 - Meteor
 
DataPsycho
7 - Meteor

I see, It is new in version 11.

jackieheer
8 - Asteroid

thanks, I was having trouble finding that tool

garthn555
8 - Asteroid

[Row-1:RowCount] + 1

tkozlyk
7 - Meteor

I added Record ID tool at the front-end, before the Transpose. But I would like to see the Record ID value at teh diff outputs of the join tool, but it doesn't pass thru the Record ID - don't know why.

 

Guess I don't fully understand Record ID ?

Labels