Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Dynamically select columns

mboudlal
5 - Atom

Hey everyone,

I'm new to Alteryx and trying to replicate a task I previously did in SAS. I have a correspondence table that indicates which columns to dynamically import from an input dataset. In SAS, I used this table to select and rename columns, where a certain flag (1 or 0) determined which columns to keep.

How can I achieve the same kind of dynamic column selection and renaming in Alteryx Designer?

Thanks in advance!

3 REPLIES 3
binuacs
21 - Polaris

@mboudlal dynamic select tool helps to select the fields dynamically and dynamic rename tool helps to rename the fields dynamically

CoG
13 - Pulsar

Here is a video I put together showcasing the design pattern I use to dynamically select fields based on secondary dataset with keep flag:

 

https://youtu.be/h5VL62GOT8I

 

Screenshot.png

 

Just as @binuacs said to identify which columns to keep and how to rename them. This workflow should be easily modified to achieve small variations based on specific usecase.

 

Hope this helps and Happy Solving!

In this series we answer questions from the Alteryx Community Forum to demonstrate how to frame problems and approach solving them using Designer Desktop. In this case, we highlight the power of the Developer Tool Palette to make Dynamic workflows by building a workflow to alter the structure of a
mboudlal
5 - Atom

Thnk you for this workflow. It acheives the same functionality i was trying to achieve.

Labels