Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Collapsing rows in excel/combining data

bradaba
7 - Meteor

Hello - 

 

I'm having issues figuring out how to complete my workflow. See attached workflow and source data files as an example. 

 

My workflow is currently taking a trial balance exported from our ERP system and we are reformatting and exporting the data into separate tabs within the output file based on:

  1. Reporting unit company code - X-Rollup file, Sheet 2 Col. B (Col. A within rollup file correlates to Co. A within Test TB file sheet 1 tab)
  2. Company code - Test TB excel file, sheet 1 Col. A 

The output file is currently exporting as expected. The issue that I am having is that our ERP system is generating the trial balance (Test TB sheet 1 is the original unedited source data) with a separate line for balances as of 2019 and 2020 - I'm trying to update my workflow so that a single CoCode Acct# balance would only take up a single line and have a balance in the 2019 and 2020 column. For example, row 2 shows the 2019 balance for Co Code 1000, Acct # 111110 of $2,150.07 and row 3 shows the 2020 balance for Co Code 1000, Acct # 111110 of $1,453.94 - I'd like to essentially combine these rows via a vlookup type function so that the Co Code 1000, Acct # 111110 would report both the 2019 and 2020 balance in a single row. 

3 REPLIES 3
pedrodrfaria
13 - Pulsar

Hi @bradaba 

 

You can just a summarize to combine both fields since the data is able to be grouped by other columns. See below:

pedrodrfaria_0-1609896201645.png

 

And then with the rest of the workflow, you can continue with what you have as you said it is working to what you need to work.

 

Please let us know if you have any questions about this solution.

 

Please assign a solution to the post if your questions were answered. It really helps us.

 

Pedro.

pedrodrfaria
13 - Pulsar

If you want to use a Join Logic, you can also do this.

 

Where we will be joining by these fields and adding the 2020 amounts right next to 2019.

pedrodrfaria_1-1609896925766.png

 

 

pedrodrfaria_0-1609896902833.png

 

Pedro.

Qiu
21 - Polaris
21 - Polaris

@bradaba 
Appended some processing after your workflow and hope its what you need.

1106-bradaba.PNG

Labels
Top Solution Authors