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

Picking current month

kauser
8 - Asteroid

hello, 

how to pick first month column only based on following data 

 

Input Data 

ItemAugustAugust1SeptemberOctoberNovember
A465834543567889234325687758

 

Expected Output- 

August
4658

 

i have tried this formula below but didn't work- 

 

[Name] IN ('Item')
OR
[Name] = ToString(DateTimeMonth(DateTimetoday()))

 

Thank you 

 

Kauser 

 

4 REPLIES 4
alexnajm
19 - Altair
19 - Altair

How do you want it to select august when the date today is in January?

kauser
8 - Asteroid

then can we setup a formula to select the second column only 

alexnajm
19 - Altair
19 - Altair

Then you can use a Dynamic Select where ([FieldNumber] = 2) (in addition to [Name] IN ('Item') )

caltang
17 - Castor
17 - Castor

Your formula:

 

[Name] IN ('Item')
OR
[Name] = ToString(DateTimeMonth(DateTimetoday()))

 

Does not select Headers - it works on Rows. What @alexnajm is better as it selects based on Headers.

 

Alternatively, you can use a Record ID + Transpose to get your data set, then implement an analytic app by adding interface layers on your tools then adding a Cross Tab to get back your answer - this is the most dynamic way and allows end users to change selections each time.

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Labels
Top Solution Authors