Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

Alteryx Designer Desktop Discussions

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

Filter by last ten weeks

RKGV
7 - Meteor

Hi Experts

 

I have a set of data in that I have column with dates in date format (every week Monday) and also week column in YYYYWW format. I want to filter only the last 10 weeks from current day.

 

Could you please help me on this ?

 

Thanks in advance

 

regards,

Rajesh 

5 REPLIES 5
binuacs
20 - Arcturus

@RKGV can you provide some sample data ?

RKGV
7 - Meteor

attached

binuacs
20 - Arcturus

   @RKGV 

 

binuacs_0-1641984416790.png

 

OllieClarke
15 - Aurora
15 - Aurora

Hi @RKGV 

 

The following filter should work:

datetimediff(
datetimeadd(datetimetoday(),
(tonumber(datetimeformat(datetimetoday(),'%u'))-1),'day')
,[Date],'day')<=70

Or you can break it out into columns to make it easier

 

OllieClarke_0-1641991870559.png

 

 

Hope that helps,

 

Ollie

RKGV
7 - Meteor

Thanks everyone for the help

Labels