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
18 - Pollux
18 - Pollux

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
18 - Pollux
18 - Pollux

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