We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Struggling with Date Filter

langs005
6 - Meteoroid

I am trying to only show dates between two dates and I cannot get the True result to tie out. I get no records/results. 

 

Custom Filter Used: 

[Completion Date] >= "10/01/2025" AND [Completion Date] <= "07/31/2025"

 

Example data

Sub Project NumberFull task nameCountCount Null _ Completion DateCompletion Date
1A1012/22/2023 15:17
2A101/29/2025 11:53
4A305/12/2025 12:57
7F1414[Null]
8A11012/5/2024 9:25
9C4010/11/2024 15:51
10G209/3/2024 7:46
11B1011/1/2023 18:17
7 REPLIES 7
aatalai
15 - Aurora

try 

[Completion Date] >= todate("2025-01-10") AND [Completion Date] <= todate("2025-07-31")

abacon
12 - Quasar

@langs005 First, the example data you provided doesn't fall within the range you specified. And the range you specified is impossible to be true, no date is less than 7/31/2025 and greater than 10/1/2025. 

But, you need to put your date column into a date format for alteryx to read - use a datetime parse tool using the settings I provided in the screenshot. Next use a select tool to change the newly output field to a date type, not datetime.

The next step would be to filter your data. Since this is now a date type, you can use the built in functions to filter to what you need.

 

Bacon

 

image.pngimage.png

langs005
6 - Meteoroid

That did not resolve it. But I'm wondering if it has something to do with the DateTime parse. The formatted date does not appear to be working properly either to convert Vstring to date. 

langs005_0-1755782360170.png

Results: 

langs005_1-1755782387221.png

 

abacon
12 - Quasar

@langs005 Click the custom option then use the format I have shown in the date time parse screen shot below.

langs005
6 - Meteoroid

Almost there: 

 

langs005_0-1755785711295.png

 

abacon
12 - Quasar

@langs005 Slight oversight on my part, use this MM/dd/yyyy hh:mm, not mm/dd/yyyy hh:mm.

 

Bacon

binuacs
21 - Polaris

@langs005 another way of doing this

toDate(DateTimeParse([Completion Date],'%m/%d/%Y'))>= "2025-01-10" 
AND toDate(DateTimeParse([Completion Date],'%m/%d/%Y')) <= "2025-07-31"

binuacs_0-1755803839279.png

 

Labels
Top Solution Authors