
Not applicable
2016-05-05
11:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 ?
3,668 Views
4 Replies

MVP
2016-05-05
01:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May be this:
If(Weeks='DMD1', WeekStart(Date(LOAD_DATE)))

MVP
2016-05-05
01:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Also make sure you have this in your environmental variables in script:
SET FirstWeekDay=0;

Anonymous
Not applicable
2016-05-05
01:46 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try
= weekstart(Load_Date) + 1
3,256 Views


Specialist II
2016-05-06
03:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
