Oracle Analytics Cloud and Server

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

Distinct Clause

Received Response
25
Views
7
Comments
Selva Pandiyan
Selva Pandiyan Rank 3 - Community Apprentice

Hi All

OBIEE reports by default generates the physical query with DiSTINCT CLAUSE.

Could we suppress teh Distinct clause?

Kindly throw some light on the implications on the reports by suppression of distinct clause.

Please help

Thanks

Selva

Answers

  • Hi,

    What do you mean by:

    Selva Pandiyan wrote:OBIEE reports by default generates the physical query with DiSTINCT CLAUSE.

    You mean when you make a query on attributes only?

    What's your use case? Because you can definitely avoid the effects of a "DISTINCT", depends on what you try to do exactly ...

  • Selva Pandiyan
    Selva Pandiyan Rank 3 - Community Apprentice

    Hi Gianni,

    Yes, When we select some set of Attributes only Report for our Legal Compliance.

    We lose some valuable information. so We want to suppress the Distinct clause.

    Thanks

    Selva

  • As the idea of the attribute is to be unique (based on the logical keys you defined), if you add the logical key to your analysis you will get the correct level of granularity. The distinct will still be there as that's how things are supposed to work (when using measures there is a group by, when only attributes it use the distinct) but you will get all your things.

    No need to show the column if you don't want it, you can hide or exclude it.

  • Selva Pandiyan
    Selva Pandiyan Rank 3 - Community Apprentice

    Hi Gianni,

    We- OBIEE guys well understood the need of Distinct Clause.

    But how do I explain to the business users as they dont understand well.

    Can we suppress the Distinct Clause or not?

    if yes, how do we do.

    Thanks

    Selva

  • [Deleted User]
    [Deleted User] Rank 2 - Community Beginner
    Selva Pandiyan wrote:But how do I explain to the business users as they dont understand well.

    Precision and data quality. Analytics IS about these. Plus ganularities. Plus uniqueness. Not "semi-random data assembly".

    Selva Pandiyan wrote:Can we suppress the Distinct Clause or not?if yes, how do we do.

    You're asking the wrong question: "SHOULD" you even do so and "WHY" should you or shouldn't you do so.

    As Gianni said granularity is there for a reason. If your data and/or models aren't well thought through and/or the usage then you have a bigger issue.

  • Robert Angel
    Robert Angel Rank 8 - Analytics Strategist

    Hi,

    I concur with my much more learned colleagues on the advisability of what you are trying to achieve, but on any subject area you can deem that any fact measure is implicitly (Implicit Fact Column) written into any query on that subject area that has no fact content. If you have a PK in the fact folder that will guarantee the granularity remains then create a non-aggregated measure based on that and use that measure as your implicit fact content.

    Hope this helps,

    Robert.

  • [Deleted User]
    [Deleted User] Rank 2 - Community Beginner

    Good one as well!