Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Default set date range

Hi All,

Whenever i open the document by default i want to show only those dates falling one week before and  after the current date.

later on user can select his date range.

How can i restrict default selection?

THnak you

Regards,

Prajna

1 Solution

Accepted Solutions
Not applicable
Author

In your load script add

LET vMinDate = Date(Today()-7,'DD/MM/YYYY');

LET vMaxDate = Date(Today(),'DD/MM/YYYY');

Set an on open trigger in the document settings and set field to select between that range.

View solution in original post

9 Replies
alexandros17
Partner - Champion III
Partner - Champion III

With a trigger,

go in settings->document properties -> trigger -> add (on Open)

Anonymous
Not applicable
Author

you should use trigger. goto settings, Document Properties, Triggers and on open and define your trigger

for the required dates

hope that helps

Not applicable
Author

In your load script add

LET vMinDate = Date(Today()-7,'DD/MM/YYYY');

LET vMaxDate = Date(Today(),'DD/MM/YYYY');

Set an on open trigger in the document settings and set field to select between that range.

bertdijks
Partner - Contributor III
Partner - Contributor III

Example in which the selected Year is set to the year of last month:

2014-04-23 14_58_15-QlikView x64 - [C__Users_bert.I3BV_Documents_Klanten_CIF_QVData_PRD_CIF_CIF Mana.png

Not applicable
Author

hi,

i created above variables

LET vMinDate = Date(Today()-7,'DD/MM/YYYY');

LET vMaxDate = Date(Today()+7,'DD/MM/YYYY');

after that in document prop on open

took action ---> select in field----> datefield---->= '>=' vMinDate & '<=' & vMaxDate

but m not getting till only currnet date... why is it so?

Regards,

Prajna

Not applicable
Author

You have +7 to max date you only need that to say Today() not Today()+7

Not applicable
Author

yeah.. but i want data for one week before and one week after current date

em getting still the same if i use today() instead of today()+7

Regards,

Prajna

Not applicable
Author

Hey, I am stuck on the same issue in Qlik Sense. Could you help me with it?

bertdijks
Partner - Contributor III
Partner - Contributor III

With the default selections in QlikSense this is not possible; maybe with certain extensions