Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Filter specific dates only

Belletmns
8 - Asteroid

Hi All,

 

I need to filter dates with the coverage September 1 to September 15, 2020 only.

 

Here is my raw data:

 

Belletmns_1-1600249507871.png

 

Hers is my desired output:

 

Belletmns_2-1600249560333.png

 

Thank you!!

5 REPLIES 5
DavidP
17 - Castor
17 - Castor

Hi @Belletmns 

 

Here you go

 

DavidP_0-1600251710135.png

 

Belletmns
8 - Asteroid

Hi David,

 

Base from the workflow you sent, I added another date 2020-09-15. Which should be included from my final input, but it appears on false.

 

Belletmns_0-1600257712541.png

 

BrianR
Alteryx Alumni (Retired)

Hi @Belletmns, your newly added Start Date is 2020-09-15, so in the case of your filter:

 

[Start Date] <= "2020-09-01" AND [End Date]>= "2020-09-15"

 

Both conditions must be met by virtue of the AND statement, and 2020-09-15 is NOT less or equal to 2020-09-01, so that's why that value appears in the False anchor. If you change that AND to an OR, then the statement would be True.

 

DavidP
17 - Castor
17 - Castor

Hi @Belletmns,

 

I understood your requirement as needing full coverage of the 1-15 Sept period. If you want date ranges where any overlap of the 1-15 period is true, the formula should be:

 

[Start Date] <= "2020-09-15" AND [End Date]>= "2020-09-01"

Belletmns
8 - Asteroid

It already works! thank you so much.

Labels
Top Solution Authors