Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Dynamic Select

afontaine
7 - Meteor

I am trying to use the dynamic select to select a certain number of fields. The data is laid out by having a state and then a set number of fields after that and then another state. The states wont always be in the same order and different number of states will exist in each file.

 

For Example 

Georgia and then the next 3 fields

New Jersey and the next 8 fields

 

contains([Name], "Georgia")+3fields

OR

contains([Name], "New Jersey")+8fields 

 

I can grab the state headers by using a contain function but not sure about the following fields. Let me know if this doest make sense

3 REPLIES 3
CharlieS
17 - Castor
17 - Castor

I would try going about this using a Dynamic Rename tool to rename the subsequent fields desired so they can be selected by the Dynamic Select. The fields can be renamed back to their original names following the Dynamic Select using another Dynamic Rename tool. 

 

When I get a few minutes, I'll build an example.

EDIT: @jdunkerley79 made it happen. 

jdunkerley79
ACE Emeritus
ACE Emeritus

I'd use a field info tool and multirow formula to make a set of keep/remove

 

Then use a dynamic rename to apply to description before using this as a dynamic select

2018-10-25_16-31-37.png

afontaine
7 - Meteor

Thank you both. Works great!

Labels