Hi, I am still relatively new to Alteryx, and I have a dilemma.
The Neilsen csv data file (very large) I am trying to decode has single rows with a single column of a string of numbers and letters that are assigned a segment of values (see table below). Since the file is csv I am past the point of using the initial file to segment the data into the respective fields using the flat file method. For example, for this string: 02000000160216010313930248001330005201010029900000022334POUND 000500000111, there are these parameters in the table below - where the first number is where the field starts in the string and the second number is where the field stops in the string.
What is the most efficient way in Alteryx to create a database with the separate fields using a csv file with a column of rows of strings?
Note the last segment in the first sting has a field "unit of measure" (e.g., POUND) which may vary (eg. OZ), but the space in between the two predefined segments (see example of one string above) allows for a quick change to two columns to decode separately if necessary.
That's as far as I've gotten.
Help?
PANEL ID | 1 | 8 |
PROCESS PERIOD | 9 | 4 |
DATE | 13 | 6 |
MODULE | 19 | 4 |
NHS OUTLET | 23 | 4 |
UPC | 27 | 12 |
UNITS | 39 | 2 |
DOLLARS | 41 | 5 |
DEAL | 46 | 1 |
COUPON | 47 | 4 |
BRAND | 51 | 6 |
UNIT OF MEASURE | 57 | 6 |
SIZE | 63 | 7 |
MULTI | 70 | 3 |
DEPARTMENT | 73 | 1 |
TRIP MISSIONS | 74 | 1 |
Solved! Go to Solution.
Thanks, Ben. This workflow is awesome!
Hi, Ben,
Back again.
I ran the workflow using the Neilsen data in all its glory (some 7M plus rows), and I ended up with only one row of output.
How are the additional rows generated?
Thanks again,
Sharon
The error you got is because of the text input tool .. I used the text input tool in my sample workflow to quickly get the input instead of creating a csv file (my mistake probably) , you can replace the text input tool with an input data tool and choose relevant CSV file . Attached the workflow with input data tool.