Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Parse data from invoice

BautistaC888
8 - Asteroid

Hello,

I have the following input data:

 

BautistaCaparelli_0-1616099357140.png

And i need to parse it to get this output:

BautistaCaparelli_1-1616099948126.png

I wonder if there is a way to get a row as header and the information bellow as row.

Thank you.

5 REPLIES 5
echuong1
Alteryx Alumni (Retired)

You can use a sample to remove extra rows at the top, and a dynamic rename to get the first row of data (after the sample) to be the headers.

 

You can use a filter with regex to grab the proper rows with actual data.

 

Are you able to upload the excel file? I can mock a workflow for you.

arathirajeev
6 - Meteoroid

There might be a better way to do it but the way I would go about it is filter out the 'not-required' rows based on the first column value being a letter or a number and then use the Dynamic Rename tool to use the first row as the header. 

BautistaC888
8 - Asteroid

I can't give you the Excel.
But i made this:

Qiu
20 - Arcturus
20 - Arcturus

@BautistaC888 

Maybe something like this

invoice-r1.PNG

echuong1
Alteryx Alumni (Retired)

Your data has a lot of trailing spaces, which I cleaned with a data cleansing.

 

I skipped the first line with a sample, and moved the headers up with the dynamic rename. I used regexmatch() to filter for any line with number in the subtotal field. 

 

echuong1_0-1616108210239.png

 

Labels