Sunday, August 8, 2010

OBIEE Reverse the filter

Or how to define a between filter based on ONE presentation variable.

Let’s get our prompt and presentation variable:

image

variable is pVarYear

Let’s get a simple report:

image

Giving us:

image

Let’s add the between, first add your variable to a dummy column:

image

Add a filter to that column and set it on between:

image

Add two sql expression with your year column and add the diferences:

image

Remove your dummy column and check the results:

image 

Or simple convert a filter to sql an directly edit it:

image

Till Next Time

No comments: