We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Please help with formatting and summarising data

HW1
9 - Comet

I have the output from a pdf parsing and a bit of filtering from a workflow as:

 

RecordIDValueMatch
18: Issue Date: 27/02/2021:-1
54TRADE WASTE FOR THE PERIOD ENDING: 27/02/2021 ——_—_———————-1
64*** 1.5 METRE BIN0
6502/02/21 1 BIN 37.50 3.75 41.25-1
6616/02/21 1 BIN 37.50 3.75 41.25-1
67*** 1.5 METRE BIN RECYCLING0
6803/02/21 1 BIN 22.50 2.25 24.75-1
6917/02/21 1 BIN 22.50 2.25 24.75-1
74INVOICE NUMBER: 1400738521020
82. Issue Date: 27/02/2021-1
83Random & Sons Pty Ltd0

 

The column [Value] can be further split by the space delimiter using the Text to Columns tool but the identification is where I can use help.

 

I want the output as 

 

Co./Last NameDateSupplier Invoice No.Amount
Random & Sons Pty Ltd27/02/2021140073852102$75
Random & Sons Pty Ltd27/02/2021140073852102$45

 

The problem I am having is that the [Amount] column is a sum of the previous two columns i.e. $75 = sum of col [Record ID] 65 & 66 i.e. 37.5 + 37.5 and likewise $45 = sum from [Record ID] 68 & 69

 

How can I get the needed output? I know it can be done using the formula tool or multi row formula however I can use some help here.

1 REPLY 1
Ben_H
11 - Bolide

Hi @HW1,

 

I've put together an example workflow for you that does get you to the output you need.

 

It isn't intended to be a full solution though, rather it's supposed to give you ideas on how you might want to tackle a more robust solution.

 

I've used a few methods (that may not necessarily be the best when you try to apply it to a wider dataset) that should be useful.

 

Ben_H_0-1618822427798.png

Regards,

 

Ben

Labels
Top Solution Authors