BusinessObjects Board

Date functions in Universe Designer

Are there any date functions in Universe Designer? I’m trying to create a filter for Yesterday based on a DayOfYear (1 through 365) field in a SQL Server 2000 db.
I know I can create a variable on the report side that will do this, but I’d like to have a predefined filter in the universe that can be used in every report.
Thanks,
MaineMan


maineman65 (BOB member since 2007-02-14)

Welcome to B:bob:B!

This sticky topic can help you:


Or at least it can get you started :slight_smile:


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

Say you want a Delivered Yesterday predefined filter. Referencing the link that Marek posted, you would get to the following solution

Create your predefined condition as:

Delivery_Date = cast(convert(char(10),dateadd(d,-1,getdate()),23) as datetime)

Regards,
Mark

Thanks to Marek and Mark; it works great and saved me a lot of tedious trial-and-error.
MaineMan


maineman65 (BOB member since 2007-02-14)