The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Trouble with Dynamically Selecting Columns

GHaines
Meteoroide

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 RESPUESTAS 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
Meteoroide

That worked perfectly. Thanks for the help!

Etiquetas
Autores con mayor cantidad de soluciones