Missed the Q4 Fall Release Product Update? Watch the on-demand webinar for more info on the latest in Designer 24.2, Auto Insights Magic Reports, and more!
Free Trial

Alteryx Designer Desktop Discussions

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

Dynamic Select a Range of Columns

qasdxx
7 - Meteor

I am trying to use the dynamic select tool to select a range of columns, I have 50 columns and would like to select columns 1-21 // 33 - 35 // 49. I would like to do this all in one expression within the dynamic select tool. I need to use the dynamic select tool because the input files are variable. Can anyone help? 

2 REPLIES 2
patrick_mcauliffe
14 - Magnetar
14 - Magnetar

@qasdxx Rather than using the dynamic select tool, why not a combination of (in this order): pivot, filter, crosstab?

When you pivot, the data is name (field name) : value (cell value) pairs, so you can select the fields you want by using the filter next.  Then, crosstab to return everything to it's original dimensions minus the fields you don't want.

 

patrick_mcauliffe_0-1633345808512.png

 

PhilipMannering
16 - Nebula
16 - Nebula

You could also leverage the Python Tool, but the @patrick_mcauliffe way is better.

PhilipMannering_0-1633346946017.png

Don't forget (like I did) that columns are 0-indexed in a pandas dataframe.

Labels
Top Solution Authors