Free Trial

Alteryx Designer Desktop Discussions

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

Dynamic formula/select help

TSP
8 - Asteroid

Hi everyone.

 

Could someone help me with a challenge I'm facing...

 

My data has many fields corresponding to months. It also has a [Year] and a [Month] field which relates to when the report was generated.

 

I'd like to create a new [This Month] field that takes the [year] and [month], and returns the correct field. 

This needs to be dynamic as the Year and Month change and I don't want to re-write my formula each month.

 

I've included as screenshot of the sample data, and the [This Month] field i'd like to create.

 

Many thanks,

🙂

5 REPLIES 5
fmvizcaino
17 - Castor
17 - Castor

Hi @TSP ,

 

Here is a suggestion for you using dynamic tools.

fmvizcaino_0-1609935227212.png

 

Let me know if this works for you.

Best,

Fernando Vizcaino

 

Qiu
21 - Polaris
21 - Polaris

@TSP 
Something like this?

0106-TSP.PNG

TSP
8 - Asteroid

Thanks @fmvizcaino , however the month in question is specified by the [Year] and [Month] fields rather than relating to DateTimeToday, if that makes sense?

 

 

pedrodrfaria
13 - Pulsar

Hi @TSP 

 

See attached below for the workflow using a transpose and join logic:

 

pedrodrfaria_0-1609935529725.png

Pedro.

fmvizcaino
17 - Castor
17 - Castor

Hi @TSP ,

 

Sure. That is why I'm using the left function before. Left(datetimetoday(),7) equals to yyyy-mm.

See example attached.

 

Best,

Fernando V.

Labels
Top Solution Authors