Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
DoraS
Contributor
Contributor

Filter for the previous 5 weeks

Hi

I need to create a bookmark for the previous 4 weeks, but in my case the week is the first day of week.

Ex: Today is 01/04 and the Weekstart(today) is 28/03. I want a filter with 28/03, and 21/03 and 14/03 and 07/03.

 

Thanks

Dora

Labels (1)
1 Reply
hic
Former Employee
Former Employee

One way to do this is to define a relative week in the script:

Div(WeekStart(Today()) - Weekstart(Date),7) as RelativeWeek,

Then it becomes a simple selection of 0 to 4, that you can save as a bookmark.