In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
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