Oracle Analytics Cloud and Server

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

Parameter in BIP DataModel LOV query

Received Response
51
Views
2
Comments
Xavier P
Xavier P Rank 3 - Community Apprentice

Content

Hi All,

We have a requirement to restrict the data from LOV query based on the parameter values passed. 

We have couple of parameters in our data model. Some of our parameters are getting the data from LOV query. We want to restrict the data from LOV query based on other parameters which is not referring the LOV query. 

E.g: I have parameters P1 and P2.

When the users selects the value for P1. I want this value to be referred in the LOV query in the where condition and value for the P2 to be populated.

Can you please guide how to achieve this if this is possible.

TIA.

Tagged:

Answers

  • FPonte
    FPonte Rank 6 - Analytics Lead

    Hi Xavier.

    Using your example.

    LOV that populates P2 should have the query containing the P1 parameter: Ex 1.: SELECT <cols> FROM <table> WHERE <attribute_filter> = :P1

    You should then set the option REFRESH OTHER PARAMETERS ON CHANGE checked on the P1 parameter.

    You may need to work out a little the LOV query as you may want P1 to send more than one value for example.

    Ex 2.: SELECT <cols> FROM <table> WHERE <attribute_filter> IN (:P1)

    Hope this helps.

    Cheers.

    Fernando

  • Xavier P
    Xavier P Rank 3 - Community Apprentice

    Thanks Fernando. This helped :)