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: 
harleen_singh
Creator III
Creator III

how to pull out data of last week between Sunday to Saturday?

Hii,

how to pull out data of last week between Sunday to Saturday? I have a date field present.

I think qlikview treats Monday as a first day of week.

But i need to instruct Sunday as a first day of week.

thanks

Lavi

1 Solution

Accepted Solutions
Not applicable

Hi,

Use InWeek function.

like

InWeek ( date, today(), -1, -1) this will start loading data from 00:00 HRS of Sunday last week to Saturday 24:00 HRS last week.

Reg,

Shubhu

View solution in original post

2 Replies
Not applicable

hello,

try to change with the variable DayNames in loading script

SET DayNames='Mon;Tue;Wes;Thu;Fri;Sat;Sun';

--> SET DayNames='Sun;Mon;Tue;Wes;Thu;Fri;Sat';

Not applicable

Hi,

Use InWeek function.

like

InWeek ( date, today(), -1, -1) this will start loading data from 00:00 HRS of Sunday last week to Saturday 24:00 HRS last week.

Reg,

Shubhu