Oracle Bi Solutions

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

Sunday, 20 January 2013

[OBIEE11g] - Getting Top-N Sales Reps for Year and Year-1

Posted on 00:03 by Unknown

The report that is being generated will have the top 10 “Sales Rep Name” who have made the most business in the current year.
The other part to this report is that, we want to compare their performance to the previous years business that these top 10 “Sales Reps” have brought in.
We would also like to compare their ranks in the previous year.
  1. So first lets create a fact measure “Year Ago Revenue” which we can use to show in our report as below in the 5th column.
  2. Open the Administration Tool, then select the blue “Open Online” folder. Enter the Repository Password (BISAMPLE1) and the weblogic administrator’s Password (e.g. Administrator1)
  3. Under the “Business Model and Mapping” Layer, right click the “F1 Revenue” and select “New Object” -> “Logical Column…”
  4. In the “Logical Column” Window give for Name: Year Ago Revenue as seen below:
  5. Goto the “Column Source” Tab and select “Derived from existing columns using an expression” radio button then click on the “Edit Expression” icon.
  6. Enter the following expression in the “Expression Builder” Window by selecting “Functions” in the “Category:” list, “Time Series Functions” in the “Functions:” list then “Ago” “Time Series Functions:” section.
  7. Select the “<<Measure>>” in the “Ago( )” function, then select “Logical Tables” in the “Category:” list, “F1 Revenue” in the “Logical Tables:” list, then double click the “Revenue” in the “Columns:” list.
  8. Select the “<<Level>>” in the “Ago( )” function, then select “Time Dimensions” in the “Category” list, “H1 Time” in the “Time Dimensions:” list, then double click the “Year” in the “H1 Time:” list.
  9. Select the “<<Number of Periods>>” and enter 1.
  10. Make sure the below expression is created in the right text box: Ago(“Sample Sales”.”F1 Revenue”.”Revenue” , “Sample Sales”.”H1 Time”.”Year” , 1)
  11. Click OK to close the expression builder and OK again in the “Logical Column – Year Ago Revenue” window so the new logical column can be seen.
  12. Drag the “Year Ago Revenue” from the BMM layer to the Presentation layer as show below:
  13. In order to show the “Revenue Rank” at the Year level and NOT the combined years level.
  14. Double click the “Revenue Rank” measure under the “F1 Revenue” Fact table in the Business Model and Mapping layer and make sure the Rank(“Sample Sales”.”F1 Revenue”.”Revenue” expression shows in the “Derived from existing columns using an expression” box.
  15. Click the “Levels” tab and and change the “Logical Level” for the “H1 Time” to “Year”.
  16. Click OK to close the “Logical Column” window for the “Revenue Rank”.
  17. Now save the changes with File -> Save and click OK to test the global consistency and check in the changes to the online repository.
  18. Now goto your Enterprise Manager Console and restart your BI services by clicking on the Restart button for your “Business Intelligence” -> coreapplication instance
  19. Now go back to your https://localhost:9704/analytics answers web page and create a report with the following columns:
    “Per Name Year”, “Sales Rep Name”, Revenue, Revenue, “Year Ago Revenue”, “Revenue Rank”.
    Select the “Per Name Year” options and choose the Sort -> “Sort Descending” to sort this column values in the descending order.
    Select the 4th “Revenue” Column options and select the “Edit formula” option to open the “Edit Column Forumla” window.
    Select the “f(…)” and select Rank function under the Functions -> Aggregate section and click OK to close the window.
  20. Now select the 6th “Year Ago Revenue” Column options and select the “Edit formula” to open the “Edit Column Formula” window.
  21. Select the “f(…)” button the Rank function under the Functions -> Aggregate section.
  22. Click OK to close the “Edit Column Formula” window.
  23. Select the 4th “Revenue” column options and select Sort -> “Sort Ascending”. Note this is the second sorted column after the first “Per Year Name”.
  24. The below screenshot shows the final modified columns :
  25. Click the Results tab to see the below results:
  26. Click the Save Icon to save the newly created analysis under a new folder “Sample Sales” under the “Shared Folders” as show below:
  27. Name the file: “Top 10 Sales Rep and Rank”
    Our Next task is to get the top 10 “Sales Rep Name” entries instead of all the member rows.
  28. Now go back to the “Criteria” Tab and select the 4th “RANK(Revenue)” Column options and select “Edit formula”.
  29. In the “Edit Column Formula” Window select the “Custom Headings” checkbox and enter “OVERALL RANK(Revenue)” next to the “Column Heading”.
  30. Click OK to close the “Edit Column Formula” window.
  31. Select the Results tab and expand the “Selection Steps” section by clicking on the “+” next to it.
  32. Under the “Sales Rep – Sales Rep Name” section, click the “2. Then, New Step…” link -> “Apply a Condition” to open the “New Condition Step” window.
  33. Select the “Condition Type” as “Top 10 based on X,
  34. For “Action” select “Keep only”.
  35. For “Operator” select “is top”.
  36. For “Rank” enter 10 and make sure the % checkbox is de-selected.
  37. For “Measure” select “Base Facts”.”Revenue” field.
  38. Click OK to create the new step.
  39. You should now be able to see only the top 10 Sales Reps for each ear.
  40. Notice that “RANK(Revenue)” is the rank over all years and “Revenue Rank” is a rank on a year wise basis.
    Our Next task is to setup a Presentation variable so the user can select which years to report on.
  41. Goto the “Catalog” Tab and Edit under the “Top 10 Sales Rep and Rank” report.
  42. After you get the report select the Prompts tab:
  43. In the page click the Green addition symbol to add a new prompt, then select “column prompt” -> “Time”.”Per Name Year”
  44. In the “New Prompt:” window let there be defaults and
  45. Select “* Prompt User” for the “Operator” option.
    Select “Choice List” for the “User Input” option.
    Select the checkbox for “Include *All Column Values* choice in the list”
    Select the checkbox for “Enable user to select multiple values”.
    Select the checkbox for “Require user input” option.
    For the “Set a variable” select “Presentation Variable” and enter “YearData” as show below:
  46. Click OK and save the analysis by clicking on the save icon.
  47. Select the “Criteria” Tab and select the “Per Name Year” options and select “Filter”.
  48. In the “New Filter” window select the “Add More Options” -> “Presentation Variable”.
  49. For the “Variable Expr” enter “YearData” and the for the “Default” enter “2010″.
  50. Click OK to close the “New Filter” window.
  51. Now the Filters section should like the below:
  52. Click the “Results” Tab then the “Show how the results will look on a Dashboard icon  to view the results with the new created prompt.
    Select the 2009 and 2010 checkboxes and click on the white space are to see the OK button.
  53. Click the OK button to see your results with the user selected year values:
Summary:
As you can see we have a “Year Ago Revenue” measure in our RPD to view the “Sales Reps” previous year business revenue and rank to compare with current year business and rank.
Then we created “Selection Step” criteria to only get the top 10 “Sales Reps”
Then we created a pompt on “Per Name Year” which updates a presentation variable which can be used for your “Per Name Year” filter.
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 ...
  • [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...
  • 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 ...
  • [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...
  • 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 ...
  • Informatica Powercenter Workflow Manager Repository Navigator docking float issue
    In case you’re also experiencing where your Repository Navigator is not dock or attached and it seems just floating within Workflow Manager ...
  • To_Char Function
    In Oracle/PLSQL, the  to_char function  converts a number or date to a string. Syntax The syntax for the  to_char function  is: to_char( val...
  • [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...

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