community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx designer Discussions

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

Selecting columns from imported data, based on a list of desired columns

Atom

Alteryx rookie here! Just started using the tool and am amazed at its power already!

 

I have a huge data set with over 500 columns, of which I only really need 30 or so for my analysis. Instead of using the select tool and manually scrolling through 500 fields to choose the 30 I need, I was wondering if there is a way to use a list of the 30 columns from a separate excel file, and then use this list in combination with the select tool.

 

This may be an easy question - forgive me!


Thanks!

Bolide

Hi @mric 

 

One method is to list the fields out that you'd want (e.g. in a text input); if you transpose your data, you can use a join as a 'select', where the middle of the join (field name to name, shown below) becomes the fields you want. 

 

To get your data back to where you want you just need to cross tab back. Something along the lines of this (and attached):

TransposeSelect.PNG

 

 

Hope that helps

Andy 

Alteryx Certified Partner

@mric 

 

A Union tool, I think, would fit the bill. There's an option that's often overlooked that will only output fields that existed in all the data streams connected into it.

 

image.png

 

Hope this helps!

Jimmy
Teknion Data Solutions

Atom

Thanks very much Jimmy! Appreciate the quick reply. Wishing you a productive week!

Atom

Thanks a lot Andy for this analysis and workflow. Happy Monday!

Labels