Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Dynamic Date

Hi All,

Is there anyway that i can change this expression to automatically calculate 14 days back?

Thanks

5 Replies
Not applicable
Author

Expression:

let vFromDate=floor(Date#('2014-04-10','YYYY-MM-DD'));

tresesco
MVP
MVP

Not sure if understood right. May be like:

Let vBackDate=Num(Today()-14);    // now you can replace today() with any date. Integer 1 is equivalent to 1 day.

Anonymous
Not applicable
Author

Here you go

vFromDate=floor(Date#('2014-04-10','YYYY-MM-DD'))-14;

Not applicable
Author

Never Mind, Figured it Out...

let vFromDate=date(floor(today()-14))

anbu1984
Master III
Master III

Date(floor(Date#('2014-04-10','YYYY-MM-DD'))-14,'YYYY-MM-DD')