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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Default Listbox Date Value(6 weeks ago)

Hello

I am new to Qlikview so forgive me if this is easy.

I know how to set a default value for a listbox as a trigger. What I am struggling to do is set the date in a listbox to 6 weeks prior to the most recent date.

I want the search to be >= Dateadd(week,-1,max(datefield))

i.e. 6 weeks prior to the latest date in the returned rows of data. But Dateadd is not available in Qlikview.

Any suggestions?

5 Replies
Not applicable
Author

There's no dateadd() function, you should use:

6 weeks = 42 days

>= max(datefield) - 42

Regards,

Ricardo

srinivasa1
Creator II
Creator II

Use Weekend or Week Start  function

Not applicable
Author

Thank-you Ricardo.

I will try this tomorrow in work.

Not applicable
Author

In what context Shri? How would I apply either of these?

srinivasa1
Creator II
Creator II

Create date island. with min date and max( date)-42 .you just create calendar date for last 6 week.