Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Filter tool

mihir_mir_jb
8 - Asteroid

Hello Everyone, 

 

I have a column in my excel file titled "Sent Date" which had dates of various months until the last month. So since this is the month of June it will have dates from Jan to May. I am trying to figure out how to filter on data where I can get records only for last month. And since this is going to be done month on month I cannot put a hard code month in the filter. Can you please advise on how to go about this. 

2 REPLIES 2
Emil_Kos
17 - Castor
17 - Castor

Hi @mihir_mir_jb,

 

I have created a workflow for you. First I would create a month column and then I would use join tool to show only the last month:

 

Emil_Kos_0-1623149570534.png

 

Hollingsworth
12 - Quasar
12 - Quasar

If your field is already a Date type, then you can use a simple filter tool with this expression:

 

DateTimeMonth([Send Date]) = datetimemonth(DateTimetoday())-1

John Hollingsworth
Clear Channel Outdoor
Labels
Top Solution Authors