Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
josephinetedesc
Creator III
Creator III

How do I make the date selection automatic?

Hi All

at present I have this as for my data load

LET vDateMin = Num(MakeDate(2016,07,01));

LET vDateMax = Num(MakeDate(2017,02,01));

However my SQL says:

greater than (Current Timestamp -5 months) and less than (Current Timestamp + 2 months)

I want to automate the Qlikview document so that it does the same thing as the SQL.  At present I manually change the vDateMin and vDateMax at the end of every month.

Is there a way that I can make vDateMin and vDateMax automatically?

Thank you

Jo

1 Solution

Accepted Solutions
tamilarasu
Champion
Champion

Hi Jo,

LET vDateMin =Num(Monthstart(Addmonths(Today(),-5)));
LET vDateMax =Num(Monthstart(Addmonths(Today(),2)));

View solution in original post

3 Replies
tamilarasu
Champion
Champion

Hi Jo,

LET vDateMin =Num(Monthstart(Addmonths(Today(),-5)));
LET vDateMax =Num(Monthstart(Addmonths(Today(),2)));

josephinetedesc
Creator III
Creator III
Author

Thank you Tamil

Jo

tamilarasu
Champion
Champion

No problem Jo. Have a good day.