Incorrect value in report using sum function OBI - Page 2 — Oracle Analytics

Oracle Analytics Cloud and Server

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

Incorrect value in report using sum function OBI

Received Response
2
Views
13
Comments
2»

Answers

  • Thomas Dodds
    Thomas Dodds Rank 8 - Analytics Strategist

    Are you the business user?  if so, then the system has no value without your input! 

    it's a best/leading practice I'm giving you here ... have it built once so it can be reused.  built by a developer who should understand the technical implementation of the level-based measure.

    else, study up on using the AGGREGATE(x AT y) function ... and have to repeat it every time you want to use it.

    I'll see if I can put it together on the sample app and show you a screenshot ...

  • 3244578
    3244578 Rank 3 - Community Apprentice

    Thanks a lot Thomas for your help!!

    I am troubling the system team to build this in the RPD for us

    it will be great if you can just send some formula or snap using the aggregate at function , or can you just send some basic formula to calculate sum?

  • Thomas Dodds
    Thomas Dodds Rank 8 - Analytics Strategist

    the online sample app wasn't up earlier...

    this blog post is built on the same RPD... http://obieehelper.blogspot.com/2012/04/aggregate-at.html

    Learn Oracle and OBIEE: Aggregate at

    essentially:

    Total Measure = AGGREGATE (Measure AT a dimensional hierarchy level)

    % of Total = Measure / Total Measure

    IE:

    Assume hierarchy Region.Office.SalesPerson

    Filter on SalesPerson = 'Sam'

    Total Office Sales = AGGREGATE (Sales AT Region.Office) = 1000

    Measure = Sales = 51

    Salesperson % of Total Sales = 100*(Sales / Total Office Sales) = 100*(51 / 1000) = 5.1 

    Filter on SalesPerson = 'Jane'

    Total Office Sales = AGGREGATE (Sales AT Region.Office) = 1000

    Measure = Sales = 75

    Salesperson % of Total Sales = 100*(Sales / Total Office Sales) = 100*(75 / 1000) = 7.5 

    NOTE:  Total Office Sales doesn't change - it is level-based on ALL OFFICES --- IF Sam and Jane are in DIFFERENT OFFICES - then it would reflect the office they are in (query grain)