ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Filter Dates Ranges

DanverMendoza
5 - Atom

Good day. 

 

I have a question is it possible to filter a specific range data using dates but will use the days in Alteryx? For example, I have a report that needs to be created every Tuesday and the data that needs to be filtered is from Monday - Sunday of the previous week or days.

1 REPLY 1
Yoshiro_Fujimori
16 - Nebula
16 - Nebula

Hi @DanverMendoza ,

 

If you can feed the reporting date, you can get the start date (Monday) and the end date (Sunday) with Formula tool.

Then you can append these dates to the data, and apply filter.

 

Workflow

Yoshiro_Fujimori_0-1681985166810.png

 

Formula

DayOfWeek = ToNumber(DateTimeFormat([Report Date],"%u"))

Monday = DateTimeAdd([Report Date], 1-[DayOfWeek], "day")

Sunday = DateTimeAdd([Report Date], 7-[DayOfWeek], "day")

 

Output

Yoshiro_Fujimori_1-1681985244237.png

 

I hope this meets your requirement.

Labels
Top Solution Authors