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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Where statement Last Week Start

How do I change this statement to give say Last week start<weekstart today? Any assistance greatly appreciated.

where weekstart(Week)<weekstart(today());

Be Well,

(O)nePuttGirl

1 Solution

Accepted Solutions
Not applicable
Author

I am new to Qlikview and would just like the following: take todays date and subtract ten days which is the start of last week as make it field [Week].  I also have a let statement LET vLastWeekStart = $(vLastWeek) - 1; so if I can incorporate the variable I would like to. Any thoughts? Thank you in advance.

num(today())-10 as Week

View solution in original post

4 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Not able to understand clearly about the problem?Can you explain little more?

Celambarasan

Not applicable
Author

I am new to Qlikview and would just like the following: take todays date and subtract ten days which is the start of last week as make it field [Week].  I also have a let statement LET vLastWeekStart = $(vLastWeek) - 1; so if I can incorporate the variable I would like to. Any thoughts? Thank you in advance.

num(today())-10 as Week

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this

=WeekStart(Today(), -1)

returns the previous week start date.

Hope this helps you.

Regards,

Jagan.

Not applicable
Author

Thank you for taking the time to anwser!