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.
SOLVED

Digit to days in month

terrellchong
8 - Asteroid

I have a column with with number from range 1 to 12 as below.

1
2
3
4
5
6
7
8
9
10
11
12

And we all know that 1 is January and in January there is 31 days.

 

I know that I can do it the dumb way, which is using formula and using IF function, but i just want to explore if there is any other ways to do this.

2 REPLIES 2
IraWatt
17 - Castor
17 - Castor

Hey @terrellchong,

Here is one workflow which can do this:

IraWatt_0-1654675389174.png

Any questions or issues please ask :)
HTH!
Ira

PhilipMannering
16 - Nebula
16 - Nebula

Here's another way,

 

 

datetimeday(datetimetrim(regex_replace(datetimetoday(), '-\d\d-', '-'+padleft(tostring([1]),2,'0')+'-'), 'lastofmonth'))

Actually, I think it's pretty similar.

Labels
Top Solution Authors