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.

Filtering 2 date parameter using "or"

BosKev
8 - Asteroid

Hi All,

 

I'm trying to filtering out 2 date from a field of dates but its only returning the first date not both any ideas? Thanks.

 

Looking to get me last day of prior month or last day of prior year. below only gives me the last day of prior month.

 

[Report Date]=left(DateTimeAdd(DateTimeFirstOfMonth(),-1,"day"),10)
or
[Report Date]=left(DateTimeAdd(DateTimeFormat(DateTimeToday(),"%Y-12-31"),-12, "MONTHS"),10)

3 REPLIES 3
atcodedog05
22 - Nova
22 - Nova

Hi @BosKev 

 

Did you check 

DateTimeFormat(DateTimeToday(),"%Y-12-31")

 

Is this working properly. Just a hunch "%Y-12-31" this might not be a accepted format.

BosKev
8 - Asteroid

Thanks @atcodedog05 looks like the table did not include prior year, formula is ok. trying to delete this post.... 

atcodedog05
22 - Nova
22 - Nova

ok cool then @BosKev 🙂👍

Labels
Top Solution Authors