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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

week start on monday

Hi All,

I wrote following condition and its giving date starting from Friday. I need to modify this to get week start from Monday.

i tried weekstart(Load_Date) but its giving from Sunday

If(Weeks='DMD1',date(LOAD_DATE)

Any idea on how to get from monday ?

4 Replies
sunny_talwar
MVP
MVP

May be this:

If(Weeks='DMD1', WeekStart(Date(LOAD_DATE)))

sunny_talwar
MVP
MVP

Also make sure you have this in your environmental variables in script:

SET FirstWeekDay=0;

Anonymous
Not applicable
Author

Try

= weekstart(Load_Date) + 1

zhadrakas
Specialist II
Specialist II

Hello uday,

the variable FirstWeekDay doesn't changed anything for me.

try this:

If(Weeks='DMD1',weekstart(date(LOAD_DATE),0,0))

the second Parameter of the weekstart function sets the startday of the week (0 = Monday)