BusinessObjects Board

Universe FirstDay of PreviousWeek & LastDay of CurrentW

Hi All,

How are you. I am trying to achieve.BO Universe First Day of Previous Week,Last Day of Current Week,Last Day of Previous Week

Struggling to get weekly ones,appreciate your inputs
FirstDayofLastWeek
=RelativeDate(getdate();-DayNumberOfWeek(getdate())-7)

FirstDayofCurrentWeek
=RelativeDate(getdate();-DayNumberOfWeek(getdate()))

I have done for Monthly its working fine

WORKING

Start of Previous Month (date)
dateadd(m,-1,cast(convert(char(7),getdate(),23)+’-01’ as datetime))

Start of Current Month
cast(convert(char(7),getdate(),23)+’-01’ as datetime)

I have done for Monthly but struggling get Weekly

appreciate your inputs
Thanks


bobdude247 (BOB member since 2013-12-12)

Hi,

A post in this older topic can help:


Marek Chladny :slovakia: (BOB member since 2003-11-27)

HI Marek,

Thanks for the link,will work on it, actually I am working on SQL Server environment

Thanks
Chandra


bobdude247 (BOB member since 2013-12-12)