Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Union Tool - How to stack data by column, instead of row

HSCUBS
5 - Atom

I need to combine multiple Excel files. All of them have the same format. The rows contain survey questions. Same survey questions in all files. The column contains entity name. When I use the Union tool, it stacks the data in rows, ie. data rows for File A is followed by data rows of File B. So the survey questions are repeated many times  But I want the data to be stacked in column by entity name. Please see the attached sample file. Please help to see if you could kindly give me a solution.

3 REPLIES 3
caltang
17 - Castor
17 - Castor

Use the Join tool like so:

 

image.png

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
caltang
17 - Castor
17 - Castor

I suggest also to add some RowIDs to your questions so it's easier to join them as a primary key than the full question itself. Sometimes the questions can be phrased slightly differently or a spelling error or some inconsistent whitespace exists. 

 

Hope this helps @HSCUBS - if it does, kindly leave a like and mark my reply as the accepted solution so that others may benefit as well + to close the thread accordingly.

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
HSCUBS
5 - Atom

Thanks for your prompt reply. As I have more than 2 files, I have copied your workflow and used Multiple Join. Thanks again. 

Labels
Top Solution Authors