Oracle Transactional Business Intelligence

Products Banner

Exclude one account from filter

Received Response

Summary: Looking to exclude a specific account from overall filter

Content (required): Is there a way to exclude one account from a filter that suppresses accounts with zero balance? I have one account that I want to show in the report whether it has a zero balance or not. All other accounts with zero balance should still be excluded.

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

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



  • Bhaskar Konar
    Bhaskar Konar ✭✭✭✭✭

    Hi @Ray Gupta,

    Can you please share some more details like which report you are trying to achieve this i.e. OTBI, BIP etc. What is the problem you are facing?

    Ideally in both OTBI or BIP you can put a filter to exclude an account.


  • Thanks for the reply Bhaskar, this is in OTBI.

    The formula I currently have to exclude accounts with 0 balance is this:

    (IFNULL("Base"."Beginning Balance",0)+IFNULL("Base"."Period Net Activity",0) <> 0)

    I'm looking for a way to amend that formula so account "500" is excluded from the filter. In essence, I want to apply the formula to all accounts except "500". So, the report would list this account regardless of balance and suppress all others with 0 balance.

  • Nathan CCC
    Nathan CCC ✭✭✭✭✭

    Use an OR. You can do this in a physical query or a logical query.

    where ((account = 500) or (account <> 500 and balance <> 0))
  • Nathan CCC
    Nathan CCC ✭✭✭✭✭

    FYI Regards "Thanks for the reply, this is in OTBI." BOTH publisher "report" "data model" (yellow) and an "analysis" (blue) are both in OTBI which is a suite of products. So you did not answer the question. The syntax of SQL is a bit different if doing a logical query in an analysis versus a publisher report data model in which you can have a dataset from an application database using traditional physical SQL or again a data set from an analysis / data source obiee using teh same logical SQL as in an analysis. But AND and OR in where clauses are the same so it makes no difference really in this case.

    Here is the reference

    logical sql (analysis) (report data model with dataset data source obiee/analysis)

    physical sql (report data model with dataset data source application database)

  • Thank you, Nathan. For the solution and the feedback on my response.