Oracle Business Intelligence Applications

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

OBI EE group by problem

Received Response
1
Views
1
Comments

Hi All

I am facing a bit of a roadblock with grouping and don't have the best SQL skills/OBIEE experience to do it.

                                                         

CURRENT RESULT

Opportunity numberMIN(Date of sale)MAX(Date of realization)Business Line ItemsRevenue
34562BIS8-5-20168-5-2017X5000
8-5-20168-9-2016Y4000
8-5-20168-10-2016Z3000
78652BIS9-11-20169-11-2017Y1000
17-5-201617-9-2018Z3000

I have an analysis for which I'm viewing as a pivot table currently. I have Opportunities (indicated by Opportunity number) which contain multiple 'Business line items' and corresponding revenues.

The business user wants this information condensed and only wants to see one record for each opportunity number. (Like in Desired result)

This record should select the business line item that has the maximum delta between max data and min date but in the revenue field - it should sum up the revenues for the entire opportunity.

DESIRED RESULT

                            

Opportunity numberMIN(Date of Sale)MAX(Date of relization)Business Line ItemsRevenue
345628-5-20168-5-2017X12000
786529-11-20169-11-2017Z4000

It is a bit contorted and i am not able to implement this. could you please help.

Thanks a ton!

Answers

  • Thomas Dodds
    Thomas Dodds Rank 8 - Analytics Strategist

    1 - You need a level-based measure for Revenue pinned at the Opportunity dimensional hierarchy level.

    2 - You need a ranking measure so you can select the appropriate delta row

    Both of the above should be built in the RPD.