Loading Dates as Data

download Loading Dates as Data

of 19

Transcript of Loading Dates as Data

  • 7/29/2019 Loading Dates as Data

    1/19

    Loading Dates as Data

    Purpose

    This tutorial shows you how to load dates as data to an Essbase ASO cube.

    Time to Complete

    Approximately 20 minutes

    Overview

    After enabling an Essbase outline to accept date measures, you can add them to the measures dimension and usethem for analysis.

    Scenario

    The Hyptek corporation, manufacturer of hard disk drives, uses Essbase for sales budgeting and forecasting (BSOdatabases), as well as current year and historical sales analysis (ASO databases). Current year "units sold" data isloaded into an Aggregate storage (ASO) cube every month and used for standard and ad hoc reporting. Monthly datafiles are archived at the end of each year.

    An interesting challenge has just come across your desk. Hyptek management would like you to create a cumulative-units-to-date report for all of the Roadranger products sold in North American retail channels under New LineIntroduction promotions. The report should be designed to show units sold for each product in the Roadranger linesince the product introduction date. The oldest product was introduced in 2003.

    Because data spans such a large period of time, no single cube contains all of the data required, nor does any onlinerelational database. You decide to build a one-off ASO cube to aggregate data from the data load files used for monthly reporting, which are available from machine-readable archives. You will load these into the ASO cube usingan aggregated load.

    Since the granularity of time for this project (spanning years) is so different from that of normal reporting (spanning asingle month), you will create a date measure in the Essbase database to store the introduction date for each of theRoadranger products.

    The final report should look something like the following figure:

  • 7/29/2019 Loading Dates as Data

    2/19

    Software and Hardware Requirements

    The following is a list of software requirements:

    Oracle Essbase 11.1.2

    Note: The HyptekAS database used in this OBE was developed for classroom use and is not available as a sampleapplication. However, screenshots are provided for the outline sections used in this OBE.

    Prerequisites

    None

    Creating an Application

    To minimize design time, you make a copy of the HyptekAS application (already cleared of data), naming thecopy HyptekRR .

    1. In the Navigation panel, right-click the HyptekAS application and select Copy .

    2. For the application name, enter HyptekRR .

    3. Click OK .

    The HyptekRR application is displayed in the Navigation panel.

  • 7/29/2019 Loading Dates as Data

    3/19

    4. Expand the HyptekRR application and database, then right-click Outline and select Edit .

    5. The outline is displayed.

    Keep Outline Editor open for the next topic.

    Enabling Date Measures

    Both text and date measures are typed measures , measures that can be associated with text and date valuesrespectively. Both are enabled in the outline properties, accessed through Outline Editor.

    1. Select the Properties tab.

  • 7/29/2019 Loading Dates as Data

    4/19

    2. In the Properties tab, in the Typed Measures enabled drop-down list, select true .

    A confirmation message is displayed, indicating that once you enable an outline to support typed measures, it cannotbe reverted to an outline that does not support typed measures.

    3. Click OK .

    4. In the Date format drop-down list, select mm-dd-yy .

  • 7/29/2019 Loading Dates as Data

    5/19

    All date measures in the outline will use this date format.

    5. Click Verify .

    A confirmation message is displayed.

  • 7/29/2019 Loading Dates as Data

    6/19

    6. Click OK , then click Save . Keep Outline Editor open for the next topic.

    Adding a Date Measure to the Outline

    In ASO cubes, date measures must be level 0 members of the measures dimension.

    1. Select the Outline tab.

    2. Expand the Measures dimension, then right-click Measures and select Add child .

    A text box is displayed.

    3. In the text box, enter Intro Date , and then press Enter .

    Another text box is displayed.4. Press Enter again to close the text editor.

  • 7/29/2019 Loading Dates as Data

    7/19

    Date measure Intro Date is displayed in the outline.5. Right-click Intro Date and select Edit member properties .

    Member properties for Intro Date are displayed.6. In the Type drop-down list, select Date .

    7. Click OK . Since date measures should not be aggregated, Intro Date is assigned the non-aggregation operator (^) bydefault.

    Completing the Outline Changes and Reviewing the Input File

    Due to the long time horizon for this analysis, outline members usually associated with monthly reporting areinappropriate. For example, the Fiscal Year dimension normally spans three years--insufficient for this project. Somenew level 0 members need to be added to the outline. (The remaining dimensions already contain members tosupport the cumulative units report.)

    1. Add the following level 0 members to the HyptekRR outline:

    For Period: Period Unspecified For Fiscal Year: FY Unspecified For Customer: Retail Unspecified

  • 7/29/2019 Loading Dates as Data

    8/19

    For Sales Person: Retail Rep Unspecified (not shown in figure)

    2. The tab-delimited input file, IntrDate.txt , contains all of the introduction dates for the Roadranger products, as shownin the following figure:

    Creating a Rules File for Loading Dates

    A data load rule (aka rules file) can be used to load dates as data.

    1. Expand database HyptekRR , right-click Rules Files and select Create rules file .

    Data Prep Editor is displayed.2. Select File , then Open data file , then navigate to IntrDate.txt and open it.

  • 7/29/2019 Loading Dates as Data

    9/19

    Data is displayed in Data Prep Editor.3. Widen the column for Field1 .

    4. Select View , then Data load fields .

    Data load fields are displayed.5. Select Options , then Data source properties .

  • 7/29/2019 Loading Dates as Data

    10/19

    6. In the Delimiter tab, select the field delimiter for the data file, in this example Tab .

    7. Select the Header tab.

    8. Select the number of header lines to be skipped during the data load, in this example, 1 , and then click OK .

  • 7/29/2019 Loading Dates as Data

    11/19

    9. Click the column header for Field1 .

    10. Select Field , then Properties .

    The Field Properties dialog box is d isplayed.11. In the Data Load Properties tab, expand the dimension list to reveal Product, then double-click Product .

  • 7/29/2019 Loading Dates as Data

    12/19

    Product is displayed in the Field name.12. Click OK .

    The dimension name (Product) is displayed in the field header.13. Click the column header for Field2 .

    14. Repeat steps 10 and 11 for Intro Date .

  • 7/29/2019 Loading Dates as Data

    13/19

    15. Click OK .

    The member name (Intro Date) is displayed in the field header.16. Select Options , then Validate .

    17. Click OK , then select File , and then Save .

  • 7/29/2019 Loading Dates as Data

    14/19

    18. Save the rules file on Essbase Server as IntrDate.rul .

    Loading the Dates

    You can use the data file and the rules file, along with specific data load settings, to load dates as data.

    1. Right-click database HyptekRR , then select Load data .

    2. The Data Load dialog box is displayed.

    3. In the Data load values drop-down list, select Overwrite existing values .

  • 7/29/2019 Loading Dates as Data

    15/19

    4. Select Aggregate Use Last .

    5. Select Find Data File , navigate to data file IntrDate.txt , then select it and click OK .

    6. Select Find Rules File , navigate to rules file IntrDate.rul , then select it and click OK .

    7. Confirm data load values.

    8. Click OK .

  • 7/29/2019 Loading Dates as Data

    16/19

    A success message is displayed in the Status column.9. Click Close .

    Viewing Results

    You can use Smart View to view dates loaded as data.

    1. Open a new Excel workbook.

    2. Select Smart View , then Open , and then Smart View Panel .

  • 7/29/2019 Loading Dates as Data

    17/19

    3. In the Smart View Panel, select Shared Connections .

    4. Provide authentication, then navigate to the HyptekRR database , right-click and select Connect .

    5. Right-click database HyptekRR and select Ad hoc analysis .

  • 7/29/2019 Loading Dates as Data

    18/19

    6. Optional: Using the Move function in the POV (Point of View) drop-down list, position the POV box inside the

    worksheet.

    The default ad hoc analysis worksheet is displayed.7. Adjust the POV to match the input specifications, then produce a report showing Roadranger products by Intro Date.

  • 7/29/2019 Loading Dates as Data

    19/19

    8. After loading Units data (steps not shown), add a column for Units and click Refresh .

    Intro Date and Units for each Roadranger product are displayed in the worksheet.

    Summary

    In this tutorial, you learned how to enable an Essbase outline to accept dates as data and to load dates using a dataload rule and an input file.