Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Trouble with Dynamically Selecting Columns

GHaines
6 - Meteoroid

Hello,

 

I am trying to create a workflow that will dynamically select the column based on the prior month. I have set up a datetime formula to create a column containing the prior month, but I am having trouble with getting the dynamic select tool to remove all other columns except for the prior month column. As of today, 1/20/2022, the prior month column reads Dec, so I want only the Dec column to remain. I know I could use an interface tool to allow the user to select the specific column, but this is part of a large workflow that already requires more user input than I prefer using.

 

Thanks for the help.

2 REPLIES 2
Luke_C
17 - Castor
17 - Castor

Hi @GHaines 

 

Maybe something like this? Takes the Currency column & the column based on the system date - 1 month. 

 

[Name] = 'Currency'
OR [Name] = datetimeformat(datetimeadd(Datetimetoday(),-1,'month'),'%b')

 

 

Luke_C_0-1642713248400.png

 

 

GHaines
6 - Meteoroid

That worked perfectly. Thanks for the help!

Labels
Top Solution Authors