In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Creating a new column based on RecordID

DataUser
7 - Meteor

Hello,

 

I have 16 record IDs, and I am looking to create a new column (RecordID2) that groups every 4 IDs. For instance:

RecordID 1 through 4 = RecordID2 1

RecordID 5 through 8 = RecordID2 2

RecordID 9 through 12 = RecordID2 3

etc. 

 

The data set will be a running data set with the most recent date as RecordID 1 and each week a new RecordID will be generated. So the data set will not always have Record IDs in multiples of 4. I am looking to automate this so the workflow can run indefinitely and not need a tweak to an IF formula at a later point in time. 

1 REPLY 1
cmcclellan
14 - Magnetar

I think the CEIL function is what you're after :

 

CEIL(x/4)

 

like this ...

 

Capture.PNG

Labels
Top Solution Authors