Documente Academic
Documente Profesional
Documente Cultură
OBIEE 11g: Presentation Variable With Multi Value Selected Gives 'No Results' and Wrong Query
Generated. (Doc ID 1418868.1)
In this Document
Symptoms
Cause
Solution
Text column:
Numeric column:
Date Time column:
Date-Only column:
Time-Only column:
References
APPLIES TO:
Business Intelligence Suite Enterprise Edition - Version 11.1.1.5.0 [1308] and later
Business Intelligence Server Enterprise Edition - Version 11.1.1.5.0 [1308] and later
Information in this document applies to any platform.
***Checked for relevance on 22-Oct-2013***
SYMPTOMS
You have a dashboard prompt with multi-select option and a presentation variable set. You have a report with a field using a
filter formula based on the presentation variable. When multiple values are selected in the dashboard prompt, the query
generated is incorrect. The query should select the multiple values selected by a comma. Instead of the results, you get this
message:
No Results
The specified criteria didn't result in any data. This is often caused by
applying filters and/or selections that are too restrictive or that contain
incorrect values. Please check your Analysis Filters and try again. The
filters currently being applied are shown below.
This occurs when the Filter SQL function is used in a column formula within a request; for example:
It does not occur if a standard filter is applied to the analysis. The incorrect SQL produced is, for example
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=138wuzxlo5_491&id=1418868.1 1/3
11/14/2017 Document 1418868.1
SAMP_PRODUCTS_D T42409 /* D10 Product (Dynamic Table) */ ,
SAMP_TIME_QTR_D T42406 /* D03 Time Quarter Grain */ ,
SAMP_REVENUE_FA2 T42442 /* F21 Rev. (Aggregate 2) */
where ( T42406.QTR_KEY = T42442.Bill_Qtr_Key
and T42409.Brand = 'BizTech,FunPod,HomeView'
and T42409.Prod_Key = T42442.Prod_Key )
group by T42406.PER_NAME_YEAR)
select distinct 0 as c1,
D1.c2 as c2,
D1.c1 as c3
from
SAWITH0 D1
order by c2
The problem is that the multiple values are passed in a single string to the physical SQL, and the operator used is "=", when it
must be "IN":
instead of:
However, if you create a report filter like this, you get the correct values:
CAUSE
For more information, see Bug 13696529 - incorrect physical query when using filter and a presentation variable multiple
SOLUTION
Review the correct syntax to use in the Advanced SQL in a filter to reference a presentation variable with potentially multiple
values. The syntax differs slightly depending on the column type.
Text column:
Numeric column:
Date-Only column:
Time-Only column:
REFERENCES
BUG:13696529 - INCORRECT PHYSICAL QUERY WHEN USING FILTER AND A PRESENTATION VARIABLE MULTIPLE
Didn't find what you are looking for?
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=138wuzxlo5_491&id=1418868.1 3/3