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 Cloud Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Cloud.

Splitting column

Jesstap
5 - Atom

Hello I am working in this assignment and can't seem to figure out how to solve for problem 1. I have have been using the text to column and was hoping to get some help. This is the problem "

  1. Output a csv file that splits the Payroll_ID field into two fields, Payroll_IDNumber and Payroll_IDDay. These fields should show the numeric portion of Payroll_ID and the text portion of Payroll_ID, respectively. Only show each value of Payroll_ID once (i.e., do not repeat Payroll_ID). Sort your data in ascending order by Payroll_IDNumber. Your solution should have the following headers:"

I have attached the data set. thank you 

2 REPLIES 2
nkuipers
Alteryx
Alteryx

Hi @Jesstap,

 

I am not a wrangling expert and there is almost certainly more than one way to do it. I think you are on the right track with using the Text To Columns tool, but you may need to do a bit of pre-processing of the Payroll_ID field first, so as to introduce an appropriate delimiter to split on?

Christina_H
14 - Magnetar

It looks like there are always 8 digits followed by one or more letters?  If so, Left([Payroll_ID],8) will give you the number, and e.g. Substring([Payroll_ID],8) will give you the remaining text.