Alteryx Designer Desktop Discussions

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

Help with Date Filer

ShantanuDagar
8 - Asteroid

Hello,

 

I have a MM/YY column.

 

The format of dates is yyyy-mm-dd

 

2023-05-23

2023-05-23

2023-05-01

2023-04-23

 

I want to filter based on year and month only.

 

Like in may 2023 I want all rows of may and 2023 which will be 1,2,3. Dates should be kept excluded from the filter.

3 REPLIES 3
ShankerV
17 - Castor

Hi @ShantanuDagar 

 

One way of doing this.

 

ShankerV_0-1684844146132.png

 

datetimeformat([Field1],"%b") = "May"

ShankerV_0-1684844185505.png

 

Many thanks

Shanker V

 

 

ShankerV
17 - Castor

Hi @ShantanuDagar 

 

Use the below formula, if you want to filter only 2023 alone.

 

datetimeformat([Field1],"%b") = "May" AND
Left([Field1],4) = "2023"

 

ShankerV_0-1684844270072.png

 

Input was:

 

ShankerV_0-1684844380351.png

 

 

Output:

ShankerV_1-1684844399929.png

 

Many thanks

Shanker V

 

 

 

 

ShantanuDagar
8 - Asteroid

Thanks, works good

Labels
Top Solution Authors