In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. 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

Dynamic Date Filter not Working as Expected

Tom-Work1
5 - Atom

Hi, I am filtering using dynamic dates. 

 

This month for some reason it appears my dynamic filter isn't working properly.

 

Creating a new field in the formula tool does generate the correct result which I could filter with, but I don't want to have a verbose workflow. 

 

I have attached an example that doesn't work for me. 

2 REPLIES 2
apathetichell
20 - Arcturus

datetimeadd(DateTimeFirstOfMonth() is a datetime - a combo of date and time (HH:MM:SS). That would be 2022-10-31 00:00:00 which is not equal to 2022-10-31

 

you can test this by using DateTimeTrim(datetimeadd(DateTimeFirstOfMonth(),-1,'days'),"day") in the formula tool and then using a compare between that expression and your prior expression. It may show up as False initially - but when you run it - it will be True.

Tom-Work1
5 - Atom

Cheers - Using the ToDate() function, the comparison worked. 

Labels
Top Solution Authors