Alteryx Designer Desktop Discussions

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

Date format and filtering date

aga123
5 - Atom

Hi All,

 

I need to filter data based on a invoice date. I need to see all transactions for specific month let's say Jan-22 in a data where I have invoices for multiple periods. My date format is 12/01/2023. I was trying to filter as below but getting error that date format is incorrect. How can I fix this?

 

Invoice date >= '2022-01-01'

AND

Invoice date <= '2022-01-31'

 

Many thanks for your help,

Aga

5 REPLIES 5
FinnCharlton
13 - Pulsar

Hi @aga123 ,

Your date is likely in a string field, you will need to convert it to a date first. Try this:

FinnCharlton_0-1674571365195.png

 

Felipe_Ribeir0
16 - Nebula

Hi @aga123 

 

Try this formula inside of your filter tool:

 

datetimeparse([Invoice date], '%d/%m/%Y') >= '2022-01-01'

AND

datetimeparse([Invoice date], '%d/%m/%Y')  <= '2022-01-31'

ShankerV
17 - Castor

Hi @aga123 

 

Please change the Invoice date to Alteryx date format YYYY-MM-DD and then use the filter.

Use datetime tool to achieve this.

ShankerV
17 - Castor

hi @aga123 

 

Please find the expected output.

 

ShankerV_0-1674571825612.png

 

Many thanks

Shanker V

 

aga123
5 - Atom

Thank you all, I managed to fix the issue.

Labels