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
21 - Polaris

@RKGV can you provide some sample data ?

RKGV
7 - Meteor

attached

binuacs
21 - Polaris

   @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

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels