Oracle Analytics Cloud and Server

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

Oracle Analytics Cloud - OAPublisher Parameter Issue on Snowflake Data Source

Accepted answer
33
Views
5
Comments

We have a data model off of a Snowflake data source that is working without issue except in one particular case: selecting all parameter values.

The Data Model uses our standard code method - (FIELD IN (:PARAMETER_NAME) OR 'All' IN (:PARAMETER_NAME))

However when we run the report and select All, nothing returns.

If we manually select the entire LOV, it works.

Any ideas?

Best Answer

  • JPorisVU
    JPorisVU Rank 4 - Community Specialist
    Answer ✓

    With the assistance of Tracey who worked on my SR, the following solution for this issue has been identified:

    ( COLUMNNAME IN (:PARAMETER) OR (CASE WHEN COALESCE(:PARAMETER, NULL) IS NULL THEN 1 END) = 1 )

Answers

  • RVohra
    RVohra Rank 6 - Analytics & AI Lead

    No experience with Snowflake but see if below works for you:

    • Add an 'All' option with a null or special value, like '@ALL @' .

    Display Value

    Return Value

    All

    @ALL @

    WHERE (:PARAMETER_NAME = '@ALL @' OR FIELD IN (:PARAMETER_NAME))
    This makes it explicit: when @ALL @ is selected , skip filtering.

    I think this pattern is reliable, when data source doesn't gracefully handle ambiguous IN logic with 'All'.

  • JPorisVU
    JPorisVU Rank 4 - Community Specialist

    @RVohra Unfortunately, that did not work. Selecting the All option still returns no vales. Thank you for the option, though.

  • RVohra
    RVohra Rank 6 - Analytics & AI Lead

    Please check with Oracle Support by logging a SR, Oracle team have more knowledge base and might have seen this with other Users. Otherwise, log an Idea in Idea Lab. Hope it helps!

  • JPorisVU
    JPorisVU Rank 4 - Community Specialist

    SR has been submitted and I will share the solution here once established for future reference and user need.