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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
raju_salmon
Creator II
Creator II

Latest 5 weeks selection

Hi,

I am using Calendar from my DB, not generating from QV.

Please find the attached sample QVW, here i have created a button to select latest 5 week selection. However i cannot able to write current string. Which field i need to use for this?

Can anyone help me on this?

Labels (1)
12 Replies
raju_salmon
Creator II
Creator II
Author

Sorry for the confusion.

Please find the attached QVW and my string to select last 13 weeks based on MAX(DATE).

It is working, however i have question if MAX(DATE) changes, will it work if i use (no.of days if i deduct? -78 days?

Because i need to calculate for last 13months as well.

tresB
Champion III
Champion III

You could rather use Week Shift paramter like:

='<=' & Date(WeekEnd(MAX(DATE))-1) & '>=' & WeekEnd(MAX(DATE),-13)

tamilarasu
Champion
Champion

Hi Raju Salmon,

I guess the above expression works. You can check by modifying date in your initial load.

Weekend will return the last Sunday date. So I just use -1 as week offset to find the last Saturday.