In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Pivot data

irajaram
5 - Atom

I am trying to pivot the attached data into a table view for use in AMPL. The data has ~ 2 M rows i.e. 200,000 Home ID's x 10 Facility ID's.  I want to pivot to a table with ~ 200,000 rows ( one for each home ID) with 10 Columns ( one for each facility ID)  the table should have the Distance in it.  Think I have to use the Cross-tab and Transpose tools but not able to get it to work.

3 REPLIES 3
Per
11 - Bolide

Hi @irajaram 

 

Yes, the Cross-tab and Transpose tools take a while to get used to 🙂 Sometimes you just need to experiment a bit. If I understood your question correctly, you just need a single Cross-tab to get the expected result as shown below. I hope it makes sense!

 

Per_0-1606245664738.png

 

messi007
15 - Aurora
15 - Aurora

@irajaram,

 

Please see below 🙂

 

messi007_0-1606247381846.png

Attached the workflow,

 

Hope that helps,

 

Regards,

irajaram
5 - Atom

Thank you - this is perfect

Labels
Top Solution Authors