Oracle Bi Solutions

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Saturday, 19 January 2013

[OBIEE11g] - Hierarchical Roll-Up and Individual Total of Facts

Posted on 22:54 by Unknown

Here we will be seeing on how to create and achieve two scenarios
  1. A Parent-Child Hierarchical Roll-Up of Revenues from sub-ordinate employees to Root/Top Employee.
  2. In the other we will be seeing how to create and achieve Parent-Child Hierarchy of Employees showing their individual Revenues.
First we have to create our RPD to model out Dimensions and Facts to support the Hierarchical of Sales Representatives.
Secondly we create our report using the “Oracle BI Answers” to show these 2 scenarios.
  1. First to create our star schema, open the “Oracle BI Administration Tool” from “Start” menu.
  2. In the Menu select “File” -> “New Repository…”
  3. When the below window comes up enter values for the Name, “Repository Password:” and “Retype Password:” fields as shown in below screenshot.
  4. Click “Next” button to continue
  5. When the below screen appears select the “ORCL” entry and enter values for the “User Name:” and “Password:” fields as shown below screen shot.
  6. Click the “Next” button to continue.
  7. When the below screen appears leave the defaults as shown in below screenshot and click “Next” button to continue.
  8. When the below screen appears select the four tables as show below and click the “import selected” button.
  9. Click “Finish” to continue.
  10. In the Main “Administration Tool” window right click and select “New Object” -> Alias and enter “D41 Sales Rep” and then click “OK” button to create an alias as shown below:
  11. Similarly go ahead and create the next 3 aliases as show below i.e.: “D42 Sales Rep Parent Child”, “D43 Sales Rep Position” and “F4 Revenue” as show in below screenshot.
  12. Select all the newly created table, right click and select “Physical Diagram” -> “Object(s) and All Joins” .
  13. On the Menu select “New Join” then click on the “F41 Revenue” table then click on the “D42 Sales Rep Parent Child” table.
  14. As show in the below screenshot create the Expression by select first the “MEMBER_KEY” then the “EMPL_KEY” and clink on the “OK” button.
  15. This will create an error link the two tables.
  16. Similarly create a “New Join” between “D42 Sales Rep Parent Child” and “D41 Sales Rep” tables as show in below screen shot by selecting the “EMPLOYEE_KEY” and “ANCESTOR_KEY”.
  17. Similarly create a “New Join” between “D41 Sales Rep” and “D43 Sales Rep Position” tables as show in below screen shot by selecting the “POSTN_KEY” and “POSTN_KEY”.
  18. The Final joins created is as shown in below screenshot.
  19. Right click in the “Business Model and Mapping” pane and select “New Business Model…” and enter “SalesRoot” as show in below screenshot.
  20. Click the “OK” button to close the window.
  21. From the Physical pane to the “Business Model and Mapping” pane drag the “D41 Sales Rep” and “F41 Revenue” tables to under the “SalesRoot” model as show in below screenshot.
  22. Next select both the tables, then right click and select “Business Model Diagram” -> “Whole Diagram”.
  23. Create the following join between the “F41 Revenue” and “D41 Sales Rep” is created and the “Cardinality” is as shown in below screenshot.
  24. Make sure the below join is created as show in screenshot.
  25. Rename your tables and columns as show in below screen shot.
  26. Create a hierarchy by right clicking on “D41 Sales Rep” table and select “Create Logical Dimension” -> “Dimension with Parent-Child Hierarchy…” as shown in below screen shot.
  27. Make sure to select the “Member Key:” value as “D41 Sales Rep_Key” and “Parent Column:” value as “Mgr id” as show in below screen shot.
  28. Click on the “Parent-Child Settings…” button.
  29. In the “Parent-Child Relationship Table Settings” window click on the “Select Parent-Child Relationship Table” icon.
  30. In the “Select Parent-Child Relationship Table” window browse to the “ORCL” -> “SAMP_EMPL_PARENT_CHILD_MAP” table in the left pane and select it, then click on the “Select” button.
  31. In the window shown in below screen shot select the four values for the respective fields as shown in below screenshot.
  32. Click the “OK” button.
  33. Right Click on the “Sales Rep Name” column and select the “New Logical Level Key…”.
  34. Make sure that the values are as shown below and the “Use for display” checkbox is selected as shown in below screenshot.
  35. Expand the “H41 Sales RepDim” Hierarchy and double click the “Detail” folder to open the below window as shown in below screenshot.
  36. Check the checkbox for the “Sales Rep Name” and uncheck the checkbox for the “Sales Rep Number” and make sure the “Parent” value is assigned to “Mgr id”.
  37. Click “OK” button to close the window.
  38. Double click on the “LTS1 Revenue” fact logical source table.
  39. Goto the “Content” tab in the “Logical Table Source – LTS1 Revenue” window as show in below screenshot.
  40. For the “Logical Level” select the “Detail” value.
  41. Click “OK” button to close the window.
  42. Double Click on the “LTS1 Sales Rep” Dimension Logical Source Table.
  43. Click on the “Add” Icon.
  44. Select the two tables on the right pane and click on the “Select” button as shown in the below screen:
  45. Make sure that the below two joins are created as shown in the below screenshot.
  46. Click on the “OK” button to close the window.
  47. Drag the “SalesRoot” from the “Business Model and Mapping” pane to the “Presentation” pane as shown in the below screenshot.
  48. This finishes the creation of the “SalesRoot” Business Model.
  49. Select the “File” -> “Check Global Consistency” option on the main menu and fix any errors shown then save your repository.
  50. Now we are onto creating the “SalesIndiv” Business Model.
  51. In the “Physical” layer pane create the 4 aliases as we did previously but this time name them “D51 Sales Rep” , “D52 Sales Rep Parent Child” , “D53 Sales Rep Position” and “F51 Revenue” accordingly.
  52. Select all the newly created 4 alias tables and right click and choose “Physical Diagram” -> “Object(s) and All Joins”
  53. Create the following Join with “EMPLOYEE_KEY” and “EMPL_KEY” as shown in below screenshot.
  54. Click “OK” to close the window.
  55. Create the following join by selecting the “POSTN_KEY” and “POSTN_KEY” as shown in below screenshot.
  56. Click “OK” button to close the window.
  57. Finally you should end up with the following joins as shown in below screenshot.
  58. Close the “Physical Diagram” window by clicking the “X” button.
  59. Now create a new model “SalesIndiv” in the “Business Model and Mapping” Pane.
  60. Drag the 2 tables “D51 Sales Rep” and “F51 Revenue” to the “SalesIndiv” Business model.
  61. Select both the tables and Right click, select “Business Model Diagram” -> “Whole Diagram” .
  62. Make sure that the link is shown as in below screenshot.
  63. Double click on the “LTS1 Sales Rep” and Click on the “+” icon.
  64. In the Browse window select both the tables and click the “Select” button as shown in below screenshot.
  65. Make sure that the two joins have been created as shown in below screenshot.
  66. Select the “D51 Sales Rep” and right click and select the “Create Logical Dimension” -> “Dimension with Parent-Child Hierarchy”
  67. Make sure that “D51 Sales Rep_Key” and “Mgr id” are selected for the “Member Key:” and “Parent column:” values respectively as shown in below screenshot.
  68. Click on the “Parent-Child Settings…” button.
  69. Click on the “Select Parent-Child Relationship Table” icon.
  70. In the new window that comes up select the “D52 Sales Rep Parent Child” table and click the “Select” button.
  71. Click “OK” on the “Logical Dimension – D51 Sales RepDim” window to close it.
  72. Select the appropriate “MEMBER_KEY”, “ANCESTOR_KEY” , “DISTANCE” and “IS_LEAF” values as shown in below screenshot.
  73. Right click on the “Sales Rep Name” and select the “New Logical Level Key…” as shown in below screenshot.
  74. Make sure that the values correspond to that shown in the below screenshot:
  75. Click “OK” button to close the window.
  76. Click on the “Detail” Level folder and confirm below values are shown as in below screenshot.
  77. Click “OK” button to close the window.
  78. Drag the “SalesIndiv” Business Model from the “Business Model and Mapping” pane to the “Presentation” pane and validate everything is ok as shown in below screenshot.
  79. Select the “File” -> “Check Global Consistency” option on the main menu and fix any errors shown then save your repository.
  80. We are now going to implement our hierarchical and individual roll-up reports.
  81. Open up the web browser and enter the URL:http://localhost:9704/analytics
  82. On the OBIEE Menu select New->Analysis->Select Subject Area->SalesRoot.
  83. Select the two columns as shown in below screenshot:
  84. For the 2nd column, select Options and “Edit Formula”.
  85. In the “Column Formula” field enter the below formula as seen in the screenshot:
  86. Now goto the “Results” tab and we can observe that all the totals are added up at the top most Sales Rep: Michele Lombardo.
  87. No we create for the individual roll-up totals.
  88. On the OBIEE Menu select New->Analysis->Select Subject Area->SalesIndiv.
  89. Select the 2 columns as shown in the below screenshot:
  90. Select the 2nd column options “Edit formula” and enter the below formula as shown in below screenshot:
  91. Now click the “Results” tab to see the output.
  92. Here we can see that the Individual Roll-Up of totals where the Sales Rep: Michele Lombardo total Revenue made is $110,000.00 dollars where as compared to the
  93. previous Total Hierarchical Roll-Up was : 50,000,000.00 which was the totals of his and his sub-ordinates totals.
  94. There is one more thing that is observed above in the report is that the Sales Rep: Sophie Bergman and her sub-ordinates are not listed here since “Sophie Bergman” has no rows which contributes to the Revenue, as can seen in the below screenshot:
  95. In order to list these “No Rows” Sales Reps i.e. Sophie Bergman and her sub-ordinates we would have to go with an alternate procedure that includes the “UNION” reports.
  96. Open your web browser to the URL:http://localhost:9704/analytics and login as admin user “weblogic”
  97. Select the New->Analysis->Select Subject Area->SalesIndiv.
  98. Select the 2 columns “Sales Rep Name” and “Revenue”.
  99. Select the 2nd column options “Edit formula” and enter SUM(“F51 Revenue”.”Revenue”) formula and click the “OK” button.
  100. Next select the “Combine results based on union, intersection, and difference operations” icon i.e green “+” icon.
  101. Under the “Select Subject Area” section select “SalesIndiv” as shown in the below screenshot.
  102. Drag the “Sales Rep Name” to the “Add Column(Sales Rep Name)” section.
  103. Drag the “Sales Rep Number” to the “Add Column(SUM(Revenue))” section.
  104. On the 2nd “Sales Rep Number” column select options “Edit formula” and enter ‘ ‘ i.e two single quotes with a space in between and click “OK” button.
  105. Your final Union Report should look as shown in the below screenshot.
  106. Click on the “Result” tab to display the report as shown in the below screen:
  107. You can notice that Sales Rep: Sophie Bergman and her sub-ordinates are now seen but we have lost the Hierarchical structure that exists above.
Note:
In order to get the “SalesIndiv” subject area to work with the hierarchical layout and the Individual Roll-Up criteria, one way is to get those members with out any rows or table entries to be updated with entries for atleast one row with a value of “0″ for revenue field.
With this we would not require the UNION report workaround.
Summary:
As can be seen we have ran through a lot of steps to create our Business Models for both the hierarchical and Individual roll-up scenarios.
After demonstrating the lack of support to the 0-rows members to show up in the hierarchical order, we have created one work around to view those members.
Maybe there is a way for us to come up a Hierarchy for the Individual roll-up and I will be happy if some one can post a comment and point me in that direction.
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in OBIEE | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Upper Function
    In Oracle/PLSQL, the  upper function  converts all letters in the specified string to uppercase. If there are characters in the string that ...
  • [OBIEE11g] - OBIEE Dashboard for Informatica Metadata Reporting
    The metadata that Informatica Power Center 8 retains in its repository can be exposed via OBIEE reports and dashboards. This metadata includ...
  • OBIEE 11g Hide/Show Sections based on Dashboard Prompt
    allow a user’s interaction to hide/show certain sections of a dashboard. In this particular case the user wanted to choose either ‘Quarterly...
  • OBIEE 11g not showing new dashboard in the drop down menu
    When creating New dashboard in  OBIEE 11g, I have faced with issue that dashboard name did not show up in drop down dashboard menu. 1. When ...
  • [ODI] - Frequently Asked Questions (FAQ)
    Here is a list of FAQs about Oracle Data Integrator 1) What is Oracle Data Integrator (ODI)? 2) What is E-LT? 3) What components make up Ora...
  • Data Modeling: Schema Generation Issue with ERwin Data Modeler 7.3
    We are using Computer Associate’s ERwin Data Modeler 7.3 for data modeling. In one of our engagements, we are pushing data model changes to ...
  • Installation Informatica Powercenter 9.1 on Oracle Enterprise Linux 5.6
    Ingredients: Program Version Filename Oracle Express 11G 11.2.0 oracle-xe-11.2.0-0.5.x86_64.rpm SQL Developer 3.0 sqldeveloper-3.0.04.34-1.n...
  • [OBIEE11g] - Creating Dashboard Traversing Through Graph
    The general requirement asked for by customers is that they want to Click on the Main Dashboard Page’s Graph and be transferred to the other...
  • [OBIEE11g] - Dashboard Prompt - "Prompt User"
    Oracle BI 11g which we hadn't seen before, the " Prompt User " operator on a dashboard prompt. I'm not sure exactly when t...
  • OBIEE 11g - Query Limit
    Query limit and number of minutes a query can run per physical layer database connection, follow the below steps. > Login to Repository u...

Categories

  • BI Publisher
  • DAC
  • DataWarehouse
  • Hyperion
  • Informatica
  • OBIEE
  • ODI
  • Oracle Applications EBS 12.1.3
  • Oracle Database
  • PL/SQL
  • SQL
  • Unix/Linux

Blog Archive

  • ▼  2013 (500)
    • ►  November (8)
    • ►  October (1)
    • ►  July (4)
    • ►  June (9)
    • ►  May (15)
    • ►  April (24)
    • ►  March (43)
    • ►  February (73)
    • ▼  January (323)
      • Uninstalling Obiee 11g instance on a linux red hat
      • OBIEE 11g not showing new dashboard in the drop d...
      • OBIEE11g Installation
      • Starting OBIEE 11g Services on Linux
      • OBIEE11g Timestamp differencess
      • DAC11g Installation on Windows Server 2008R2.
      • BI Apps 7.9.6.4 Installation in widows server 2008R2
      • [OBIEE11g] - Eventually succeeded, but encountered...
      • [OBIEE11g] - Blue Screen Error While Login With Bi...
      • [OBIEE11g] - No Log Found Error
      • [OBIEE11g] - Stream Closed Error when Click on cor...
      • OBIA 7.9.6.4 RPD And Catalog Shared
      • [OBIEE11g] - Destination Path too Long error while...
      • [OBIEE11G] - Lookup table is a new feature in obie...
      • [OBIEE11g] - Create Veriable in OBIEE11g.
      • [OBIEE11g] - Configuring LDAP Server to provide OB...
      • [OBIEE11g] - Authentication Failure in OBIEE 11g
      • [OBIEE11g] - Bing Map Integration with OBIEE 11g
      • [OBIEE11g] - OBIEE Dashboard for Informatica Metad...
      • Informatica PowerCenter Upgrading from Version 8.6...
      • Data Modeling: Schema Generation Issue with ERwin ...
      • [OBIEE11g] - DAC Reporting in OBIEE11g
      • [OBIEE11g] - Publisher 11g – Performance Monitorin...
      • [OBIEE11g] - Auto Start OBIEE 11g using Windows Se...
      • [OBIEE11g] - Upgrade OBIEE 11.1.1.5 To Latest Vers...
      • OBIEE11g - User Right Click Interaction Control w...
      • [OBIEE11g] - Customizing Prompts ‘All Column Value...
      • [OBIEE11g] - Choosing the Right OBIEE Visualization
      • OBIEE11g - 11.1.1.6 New Features
      • [OBIEE11g] - Certification with Siebel Marketing f...
      • [OBIEE11g] - Creating a Stacked Bar Chart.
      • [BI EE11g] – Managing Host Name Changes
      • [DAC] - Multi Source Loads With OBIA
      • [Informatica] - ERROR CODES: [CNX_53021 ],[DOM_100...
      • [Informatica] - Informatica PowerCenter Repository...
      • [Informatica] - Processing UNICODE Characters in I...
      • [Linux] - Unix/Linix Commands
      • [DAC] - Full Load Vs Incremental Load
      • [Informatica] - Installation of Informatica 9.0.1 ...
      • [Informatica] - SF_34004- Service initialization ...
      • [Oracle Database] - Linux OS and Oracle database S...
      • [Oracle Database] - Installion Oracle database11g ...
      • [Informatica] - RR_4053 : Row error occurred while...
      • [OBIEE11g] - Change the placement of currency name
      • [OBIEE11g] - Exception Occuring During OBIEE 11.1....
      • What is Indexing in a Database
      • [OBIEE11g] - Setting up OBIEE11g Admin Tool for OD...
      • [OBIEE11g] - Getting Top-N Sales Reps Using the TO...
      • [OBIEE11g] - Getting Top-N Sales Reps Using Result...
      • [OBIEE11g] - Getting Top-N Sales Reps for Year and...
      • [OBIEE11g] - Analyzing Sales for “N Years Top-10 S...
      • [OBIEE11g] - Drill Down to Sub Reports Passing Mul...
      • [OBIEE11g[ - Configuring BI Scheduler for iBots on...
      • [OBIEE 11g] - How Application Roles, Groups and Us...
      • [OBIEE11g] - Setting up Access Permissions to Repo...
      • [OBIEE11g] - Fixing Weblogic and bi_server1 startu...
      • [OBIEE11g] - Deleting and Re-Creating Users in We...
      • [OBIEE 11g] - Backup and Restore of OBIEE Filesyst...
      • [OBIEE11g] - Creating Effective Bar Graphs
      • [OBIEE] - Useful SQL statements in Business Intell...
      • [OBIEE11g] - Creating Dashboard Traversing Throug...
      • [OBIEE11g] - Database Connection Failure while cr...
      • [DAC] - Admin password recovery
      • [Oracle 11g] - Oracle Database 11g installation on...
      • [OBIEE11g] - Variables in Oracle OBIEE 11g
      • [OBIEE11g] - Installing OBIEE 11g on Linux Fedora 17
      • [OBIEE11g] - Table view Date Column controlled by...
      • [OBIEE11g] - Adding Tooltips and conditional colo...
      • [OBIEE11g] - Show top-N Sales Persons in BI Publi...
      • [OBIEE11g] - Creating Scrolling Ticker Views
      • [OBIEE11g] - Authentication first with LDAP then ...
      • [OBIEE11g] - Relocation of OBIEE MetaData Reposit...
      • [OBIEE11g] - Hierarchical Roll-Up and Individual T...
      • [OBIEE11g] - Creation of Sales Reps Hierarchy wit...
      • [OBIEE11g] - Using external table to Filter BI Ans...
      • [OBIEE11g] - Configuring of RPD deployed on Linux...
      • [OBIEE11g] - Configuring an ODBC DSN for the Oracl...
      • [ODI] - Frequently Asked Questions (FAQ)
      • [OBIA] - Oracle BI Applications - Frequently Asked...
      • [OBIEE 11g] - Maps - Frequently Asked Questions (FAQ)
      • [OBIEE11g] - The 11g Features You Maybe Didn't Know!
      • [OBIEE11g] - New Features with OBIEE 11.1.1.6
      • [OBIEE11g] - Dashboard Prompt - "Prompt User"
      • [OBIEE11g] - [46153] The configuration file (O:\us...
      • [Informatica] - Multiple Chart of Accounts Configu...
      • [OBIEE11g] - Customizing Pivot Table Error
      • [OBIEE11g] - How to get Month Start Date and Month...
      • [OBIEE11g] - How to get Week Start Date and Week E...
      • [OBIEE11g] - How to rename My Dashboard
      • Table Organization in OBAW (Oracle Business Analyt...
      • [OBIEE11g] Uninstall OBIEE 11g
      • [OBIEE11g] - Command Line Merging in OBIEE 10g/11g
      • BI Publisher report is showing incorrect date(Show...
      • [OBIEE11g] - Connectivity issue from OBIEE (in Sol...
      • [OBIEE 11g] - Installation on Red Hat Linux
      • [OBIEE11g] - Different ToolTip for different rows ...
      • [OBIEE11g] - Integrating OBIEE 11g with EPM worksp...
      • [DAC] Fail to create indices during DAC execution ...
      • [DAC] Oracle DAC issue in 64 Bit Machine
      • [OBIEE11g] Connection Pool Select Button is Disabl...
Powered by Blogger.

About Me

Unknown
View my complete profile