Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

BI Publisher - Selecting 'All' in Parameter does not return any data

Accepted answer
2429
Views
2
Comments

Summary:

We have created a BIP model parameter in such a way that when all values are selected, Null will be passed. We are handling this condition in the data model query with COALESCE or NVL or IS NULL functions, but none of them is returning any results.

Content (required):

Hi Team,

We have created a BIP model parameter in such a way that when all values are selected, Null will be passed (I believe there was another option of 'All will be passed' but somehow it's not available in OAC). We are handling this condition in the data model query with COALESCE or NVL or IS NULL functions, but none of them is returning any results. When we explicitly select all the values in the parameter (without selecting 'All') then it's returning the results correctly. Tried this with multiple Oracle and non-Oracle data sources. Can anyone help here, please?

Version (include the version you are using, if applicable):

6.2

Code Snippet (add any code snippets that support your topic, if applicable):


Best Answer

Answers

  • Neeti Choksi-Oracle
    Neeti Choksi-Oracle Rank 5 - Community Champion

    Hi Alok,

    Thanks for the info. I was able to get the resolution to my issue with the help of the development team.

    We were using Oracle BIEE connection as a source to our BIP data model. Apparently, the BIJDBC connection does not support NVL or NULL values. you need to use CASE WHEN statements to handle the null condition for parameters.

    Example - 

     AND ("vw_fact_cnctvty_fee_smry_sox_1"."chain" IN (:chain) OR (CASE WHEN ('null') in (:chain) THEN 1 END =1))