Oracle Analytics Publisher Forum

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

Using non standard SQL queries with multiple conditions in a BI Publisher Data Model

Received Response
18
Views
1
Comments

Hi there,

I've followed the documentation from Oracle on conditional queries using an if else expression wrapped around SQL data models in BI Publisher.

Creating Data Sets Using SQL Queries

I can successfully run a non SQL query with a parameter in my data model where one condition is present using the following syntax

$if{ (:p_agg_pic_acc == Yes) }$

SQL Statement

$else{

SQL Statement

}$

$endif$

But I'm struggling to find a solution if I need two conditions to be met.

So for example trying something along the lines of the approach below

$if{ (:p_agg_pic_acc == Yes && :p_agg_zero_supp == Yes ) }$

Does anyone have any thoughts on the syntax ?

Thanks

Mark

Answers