Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I create a filter for today or future dates?

Status
Not open for further replies.

Enea

Technical User
Feb 23, 2005
90
0
0
US
I need to create a filter for date >=today.

What is the syntax I can use?

I am using Webby

Thank you
 
You trying to do this at the report level or at the universe level?

I don't think there is a way to do this at the report level since "defined" filters do not exist in WebI.

Steve Krandel
VERITAS Software
 
You can create a report level variable and then apply a filter on the variable.

e.g. =If([Month (YYYYMM)]>200410;1;0)

I've done a simple IF to look at the month, if greater 200410 then this variable is 1 else 0.

I then filtered the report looking for 1's.
 
Enea:
In my experience the best way to do this is add a Predefined Condition to the universe. You will need to speak to your universe designer about this (unless that is you!)
Here are some examples of predefined conditions I have used in the past:
This is relevant for Oracle 9i Datawarehouse:

Create a predefined condition like below:
Last 28 Days:
Code:
 @select(DATE DIMENSION) BETWEEN (sysdate-28)  AND sysdate

Next28 Days:
Code:
 @select(DATE DIMENSION) BETWEEN sysdate  AND (sysdate+28)

Today and tomorrow:
Code:
 @select(DATE DIMENSION) BETWEEN sysdate  AND (sysdate+1)

Just Tommorow:
Code:
 @select(DATE DIMENSION) = (sysdate +1)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top