The tutorial in "A Basic Essbase Tutorial" describes how to perform basic data retrieval and navigation tasks in Essbase Spreadsheet Add-in. This section walks you through performing the following advanced retrieval tasks:
Remember that you can perform common data retrieval tasks in any of the following ways:
Despite the ease and speed with which you can navigate through large Hyperion Essbase databases, it is not practical to use the capabilities of Excel to filter and sort very large databases; however, the Essbase server includes powerful data filtering and sorting capabilities. In "A Basic Essbase Tutorial", you learned to use Essbase Query Designer to define a dimensional layout and to select members to view. Essbase Query Designer also provides a powerful, yet easy-to-use tool to define conditional retrievals.
To become familiar with the capabilities of Hyperion Essbase Query Designer, work with the query, Basic1, that you saved in "A Basic Essbase Tutorial", and perform the following steps:
Essbase displays the query information panel of Essbase Query Designer.
The member selection, displayed in the properties panel, remains unaltered from the last Essbase Query Designer session.
Essbase displays the data filter settings in the data filter panel. The filter controls the number of data rows that are retrieved. The number is based on the column criteria that you define. You can define data filtering criteria on data values that reside in one or more columns of the view.
When you apply the query, Essbase retrieves the top thirty rows of the dimension.
Your query results should look as shown below.
Figure 89. Data Filtering Query Results
You can further filter your data output by specifying data comparison operations in the Data Restrictions box.
The data filters that you specified are displayed in the properties panel.
The data restriction settings are displayed in the properties panel.
Observe that the is option in the Data list box changed to =.
Notice that the query results now reflect only Actual and Budget data that are less than or equal to 500.
This option instructs Essbase to discard data that have #Missing values.
The data restrictions should display as follows:
Essbase retrieves data for all the quarters. Notice that the retrieved data for Qtr1, Actual is less than or equal to 500 or is less than Qtr2, Actual. The results should display as follows:
Using the data sort panel, you can sort the output from the Basic1 query in ascending or descending order.
The data sorting settings are displayed in the properties panel. You can specify data sorting criteria that affect the order in which the selected rows are retrieved in the data sorting panel.
The data sorting panel contains the following items:
The selection defaults to Qtr1, Actual. The sort order defaults to Ascending in the Ordering list box.
The selection defaults to Qtr1, Actual.
Observe that the order in the Ordering list box has defaulted to Ascending.
The Ascending, Qtr1, Budget sorting rule is deleted from the query.
Essbase returns the results sorted in descending order for each quarter, as shown below:
Figure 94. Result of Filtering and Sorting Data
When you retrieve data into a worksheet, the resulting report can be either symmetric or asymmetric. Symmetric reports are characterized by repeating identical groups of members. For example, Figure Figure 94 shows a symmetric report that contains Actual and Budget members nested below Year members (Qtr1, Qtr2, Qtr3, and Qtr4).
An asymmetric report is characterized by groups of nested members that differ by at least one member. There can be a difference in the number of members or in the names of members.
You can create asymmetric reports in one of the following ways:
If you retrieve data into an asymmetric report, Essbase must perform additional internal processing to maintain the asymmetric layout. This processing may increase the retrieval time on large reports. For more information regarding optimizing reports, see the Database Administrator's Guide.
As part of the default Essbase installation, Hyperion Essbase provides a sample file, Asymm.xls, that illustrates how to create asymmetric reports.
To view the sample file, Asymm.xls:
Depending on how software is installed on your PC, the file may not be available or may be located in a different directory. Contact the Essbase system administrator for more information.
In Asymm.xls, row and column dimension groups are asymmetric. Thus, the nested member groups from the Product dimension differ in member content within respective markets. For example, Colas and Fruit Soda are included in East but not in West. In addition, Actual data is displayed for Qtr1, whereas Budget data is displayed for Qtr2, Qtr3, and Qtr4. Also notice that the sample file displays styles for members of the Scenario and Year dimensions.
When you pivot a group of members in an asymmetric report, Essbase keeps only unique members from dimensions that are not involved in the pivot.
To use the open Asymm.xls file to illustrate this point:
Figure 96. Result of Pivoting in an Asymmetric Report
Essbase combines the Product members into all unique members. For example, Root Beer, which is displayed twice in Figure Figure 95, is displayed only once in the current view. Colas, which is displayed in only one market in Figure Figure 95, now is displayed in East and West.
Essbase also removes the blank line between Product row groups. A pivot action always eliminates any rows or columns in which all cells are empty.
In addition to providing flexible, ad hoc retrievals, Essbase supports retrieving data into formatted worksheets. A worksheet can contain the following formats:
After you format and save a worksheet, you may want to retrieve and navigate through new data in the existing worksheet format. This section provides the following information on working with formatted worksheets:
Observe the following rules when retrieving data into a formatted worksheet:
In the worksheet, no numeric cells can be located before the first Hyperion Essbase data cell. For example, in Figure Figure 97, the first Essbase data cell is B6. Neither any cell in rows 1 through 5 nor cell A6 can contain numeric values. Also, these cells cannot contain formulas that resolve to numeric values.
A cell that lies within a row or column of Essbase data cannot contain text or numeric values. For example, in Figure Figure 97, the cells in columns B, C, D, and F and rows 6 through 9 and 11 through 14 cannot contain any nondata text or numbers, for such values may be overwritten (or emptied) by the retrieved data. These cells can contain formulas, however, if Formula Preservation options are used. For more information on Formula Preservation options, see "Preserving Formulas When Retrieving Data".
The Pivot command is not available when the Retain on Retrieval check box is selected in the Essbase Options dialog box (Mode tab).
The Pivot command removes all cells that contain text other than database member names.
As part of the default Essbase installation, Essbase provides a sample file, P&l.xls, that illustrates how to retrieve data into a formatted worksheet. The P&l.xls sample file illustrates how to retrieve data into a worksheet that contains formatted text, formulas, and protected cells.
To view the P&l.xls worksheet:
Depending on how software is installed on your machine, the file may not be available or may be located in a different directory. Contact the Essbase system administrator for more information.
By default, an Essbase retrieval overwrites Excel formula with data values in the retrieval area of a worksheet. The retrieval process also eliminates formulas in cells outside the retrieval area. However, the Retain on Retrieval option enables you to define retrievals that do not overwrite formulas in any area of the worksheet.
Essbase determines that some text cells in the worksheet do not correspond to database member names. When Essbase is unable to resolve text in the worksheet, the following message is displayed:
Figure 98. Essbase Unknown Member Message
In this example, the first unknown member detected is Market: (in cell A1). Essbase does not recognize the colon (:) that follows Market in the cell. If you click Yes, Essbase displays the next unknown member; if you click No, Essbase continues with the retrieval.
Essbase retrieves new data but retains the formatting and formulas in the worksheet.
With the Pivot command, you can produce ad hoc reports in both formatted and unformatted worksheets. However, a formatted worksheet may contain labels and formulas that make the result of a pivot operation ambiguous. The pivot is designed to compress and retain only the database elements represented in the worksheet. The worksheet also retains labels in areas that are not overwritten by pivoted data.
Inv.xls, a sample file installed as part of the Essbase installation process, illustrates how to pivot data in a worksheet. It was saved with the Retain on Retrieval option disabled so that you can pivot on its worksheets.
To view the Inv.xls worksheet:
Depending on how software is installed on your PC, the file may not be available or may be located in a different directory. Contact the Essbase system administrator for more information.
Essbase pivots the Sales member group so that it is nested below the monthly members. However, during the pivot, Essbase retains only database elements. For example, all data for Stock to Sales and Adjusted for Audit is deleted during the pivot.
In "Retrieving Data into Formatted Worksheets", you used the Retain on Retrieval option to preserve formatting and formulas in an existing worksheet. Collectively, the Formula Preservation options enable you to retain formulas during data retrievals, keep and remove only operations, and drill operations. In addition, Essbase can replicate formulas for additional members retrieved into the worksheet as part of a drilling operation. This section steps you through using all of the Formula Preservation options in a report that you create.
You must enable some options before you can enable other options. Keep in mind the following guidelines and restrictions when using the Formula Preservation options:
To preserve formulas when retrieving or retaining data:
Excel calculates the formula that you entered in cell G3 and now reflects Qtr1 as a percentage of Year.
Essbase removes the selected columns but retains the Excel formula that you entered, keeping it with the retained dataset.
Figure 104. Result of Removing Columns with Retain on Keep or Remove Only Enabled
Essbase drills down on Qtr1 and moves the formula down with the Qtr1 member.
Figure 105. Result of Drilling Down with Retain on Zooms Enabled
Essbase drills down on Qtr1 and replicates the formula for each member of Qtr1 (Jan, Feb, and Mar). To view the replicated formulas, click in cells D3, D4, D5, and D6 and look at the new syntax in the Excel formula bar.
Figure 106. Result of Drilling Down with Formula Fill Enabled
In a typical Excel worksheet, you can select a range of cells by dragging the mouse across the worksheet. You can also select a range of cells and tell Essbase to restrict the data retrieval to the selected range in the worksheet. Retrieving a range of data is particularly useful in the following situations:
As part of the default Essbase installation, Essbase provides a sample file, Profit.xls, that illustrates how to retrieve a range of data.
To view the Profit.xls file:
Depending on how software is installed on your PC, the file may not be available or may be located in a different directory. Contact the Essbase system administrator for more information.
Profit.xls has already selected a range of cells (B2 through F9) for you.
Figure 108. Result of Retrieving First Range of Data
Essbase updates only the data in the selected range of cells.
Essbase updates the data in the selected range.
The Essbase cell retrieve function, EssCell, retrieves a single database value into a worksheet cell. Enter an EssCell function directly into a worksheet or select an EssCell function from the Excel menu bar.
EssCell retrieves data when you perform an Essbase retrieval or when you recalculate a worksheet through Excel. As part of the default Essbase installation, Hyperion Essbase provides a sample file, Summary.xls. This file has EssCell functions already set in cells B16 and B17.
To view the Summary.xls file:
Depending on how software is installed on your PC, the file may not be available or may be located in a different directory. Contact the Essbase system administrator for more information.
Figure 111. Worksheet Containing EssCell Functions
Cells B16 and B17 in Summary.xls contain the EssCell function. If you select either of these cells, you can view the syntax for the EssCell function in the Excel formula bar at the top of the worksheet.
The EssCell function is defined in a cell as follows:
=EssCell(mbrList) |
mbrList is one of the following:
For example, the syntax for the EssCell function in cell B16 in the
Summary.xls file is the following:
=EssCell("Sales", A1, A2, B4, F5) |
When you open the worksheet, the values in these cells are #N/A. To update the values with the data in your database, you must perform a retrieval from Essbase.
Figure 112. Retrieval on a Worksheet Containing the EssCell Function
Now update the EssCell functions to retrieve data for a different state.
The values in cells B16 and B17 are updated as soon as you update the cell. The update occurs because Excel has recalculated the worksheet (if you have configured Excel to calculate changes automatically). The remaining data cells do not change. To completely update the worksheet, you must retrieve data from the server.
Figure 113. Updating the EssCell Function
Essbase returns an error message if EssCell is unsuccessful. The following table lists messages that Essbase displays in the EssCell cell and explains the conditions that cause the messages:
Message
|
Reason
|
---|---|
#N/A
|
The worksheet is not connected to a database.
|
#VALUE!
|
A member name in the list or reference is invalid.
|
#NAME?
|
A text name in the function does not contain double quotation marks.
|
The sample file that you used for this tutorial task already had EssCell functions defined.
To enter your own EssCell function into a worksheet, you do the following:
The Excel Function Wizard steps you through defining the EssCell
function.
|
Dynamic calculation members are database members that are excluded from the batch calculation process, thus shortening the regular database calculation time . The Essbase application designer tags dynamic calculation members in the database outline so that Essbase knows not to calculate those members until a data retrieval requests them. This process is referred to as dynamic calculation. Dynamically calculating database members benefits the Essbase server in the following ways:
Database values that Essbase calculates dynamically take slightly longer to retrieve in Essbase Spreadsheet Add-in because Essbase must perform calculations before retrieving data into the worksheet. For more information on dynamic calculation, see the Database Administrator's Guide.
Because there may be a performance impact on retrieving data for dynamic calculation members, define visual cues, or styles, for these members so that you can identify them in Essbase Spreadsheet Add-in.
To illustrate how to use Dynamic Calculation members, use the Asymm.xls file.
To view the Asymm.xls file:
Essbase displays only the Scenario members for Qtr1.
Essbase displays the data and applies all the visual cues, or styles, that you set, including the newly set styles for dynamic calculation members and the styles you set in "A Basic Essbase Tutorial". You can tell that the columns for Variance and Variance% are dynamically calculated because Hyperion Essbase displays these members in gray, bold, italicized font. (Variance and Variance% also have a red background because that style was previously set for all members of the Scenario dimension.)
Figure 115. Result of Retrieving Dynamic Calculation Members
Dynamic Time Series members are predefined database members that are used in dynamic, to-date reporting, such as year-to-date or month-to-date values. Dynamic Time Series members do not display as individual members in the database outline; instead, they correspond to a generation name that uses a key term for time, such as year, month, or day.
For example, in the Sample Basic database, a generation name called Quarter was created for generation 2 in the Year dimension. Generation 2 includes the members for Qtr1, Qtr2, Qtr3, and Qtr4. When the generation name Quarter was created, Essbase created a Dynamic Time Series member called Q-T-D, or quarter-to-date.
To take advantage of Dynamic Time Series in Essbase Spreadsheet Add-in, choose the latest time period for which you want data in a to-date calculation. The calculated value of the Dynamic Time Series member is derived when you define the latest time period to be reported. In the Sample Basic database, for example, the level 0 members of the Year dimension are the months of the year: Jan, Feb, Mar, and so on. If the current month is August, and you want to know the sales data for the quarter up to the current month, a quarter-to-date calculation gives you the sales data for the months of July and August.
To illustrate the concept of Dynamic Time Series:
Figure 116. Entering a Dynamic Time Series Member into a Worksheet
Figure 117. Specifying Latest Time Period in a Dynamic Time Series
Essbase displays data for the Q-T-D member. The data values in the worksheet are the aggregated values for April and May, because May is the month you specified as the latest month in the quarter-to-date Dynamic Time Series.
Figure 118. Result of Specifying Latest Time Period in a Dynamic Time Series
The Essbase application designer uses substitution variables to define global variables to represent values that are specific to Essbase. For example, Latest can be a substitution variable representing the latest time period in a Dynamic Time Series. Using Essbase Application Manager, the application designer sets substitution variables and their corresponding values for a specific application. Essbase stores these variables and their values on the Essbase server. You can take advantage of the predefined substitution variables in Essbase Spreadsheet Add-in during Dynamic Time Series reporting
. For example, say the application designer sets a substitution variable on the server for the current month. The variable is called CurMnth and has a value of August. If you use the substitution variable in the worksheet, a retrieval returns values for August, because August is set as the current month on the server. If, at a later date, the application designer changes the value of the CurMnth substitution variable to October, a retrieval returns data for October.
The Sample Basic database you are using for this tutorial does not contain predefined substitution variables. If the application designer had set a substitution variable in the database you are using, you could enter a substitution variable directly into a worksheet. For example, you could open a blank worksheet and type member names as follows:
Figure 119. Entering a Substitution Variable in a Worksheet
In this example, a retrieval produces the following results:
Figure 120. Result of Retrieval on a Substitution Variable
Essbase queries the server for the value of the substitution variable CurMnth, which is August. Data is returned only for August.
So far, you have learned how to retrieve Essbase data into a worksheet through ad hoc retrieval, Hyperion Essbase Query Designer queries, and Member Selection operations. In addition to these retrieval methods, Essbase supports free-form reporting. Free-form reporting enables you to tell Essbase specifically what you want to retrieve by simply typing data into the worksheet. Free-form reporting is especially useful when you are familiar with the dimensions and members in the database outline.
Essbase provides two different retrieval modes for free-form reporting:
In both retrieval modes, enter member names directly into the worksheet. The following sections describe the similarities and differences between the two modes.
The Essbase server contains an advanced spreadsheet interpretation engine that scans a worksheet and interprets its content when fulfilling retrieval requests. When you construct a report by entering names directly into a worksheet in Advanced Interpretation retrieval mode, Essbase interprets the member names and creates a default view that is based on the location of the labels.
Keep in mind the following guidelines when you are working in Advanced Interpretation mode:
To construct a free-form report in Advanced Interpretation retrieval mode:
Essbase retrieves data for the members you entered into the free-form report and implements the Use Aliases option that you set in the Essbase Options dialog box in the beginning of this chapter.
Now define a free-form report that does not contain all of the dimensions from the database. In Advanced Interpretation mode, you may need to enter a dummy data value, such as 0, into the first Essbase data cell to tell Essbase where the data starts in the worksheet. Be sure to use a numeric value as the dummy value.
For example:
Figure 123. Defining a Free-Form Report Without All Dimensions
Essbase adds the dimensions that were omitted from the free-form report to the worksheet and retrieves data.
Figure 124. Retrieval in a Free-Form Report Without all Dimensions
Similar to Advanced Interpretation mode, Free-Form mode enables you to enter member names into any location in a worksheet and then interprets the contents of the worksheet when fulfilling the retrieval request. In addition, with Free-Form mode, you can use Essbase report script commands to retrieve data into a worksheet.
Report script commands are most useful for defining member references that can bring back the most current member information dynamically. For example, if you need to create a report that shows every product, including the products added since the last retrieval, standard retrieval mode reflects changes only when you zoom in on the product. If you use the report script command <IDESCENDANTS, Essbase retrieves all descendants of a specified member, including the specified member. For more information on the syntax of report script commands and on guidelines for developing reports, see the Technical Reference in the docs directory and the Database Administrator's Guide
. Keep in mind the following guidelines when working in Free-Form retrieval mode:
To construct a free-form report in Free-Form retrieval mode:
Essbase retrieves data for the members and creates a default view according to the location of the labels. Note that three members were pivoted from row groups to column groups.
Figure 126. Result of Retrieving in Free-Form Retrieval Mode
Now create a report by entering member names and a report script command:
Figure 128. Typing a Report Script Command in a Free-Form Report
Essbase retrieves data into the worksheet for all descendants of Product and for the members you entered in the worksheet.
Figure 129. Result of a Retrieve with a Report Script Command
Essbase enables you to retrieve data selectively by specifying attributes that are associated with a base dimension. For example, in the Sample Basic database, the Product base dimension is associated with attributes such as packaging and size. You can enter an attribute name into the worksheet to retrieve data that is associated with that attribute.
To use attributes in a free-form report:
Caffeinated is an attribute dimension associated with the Product base dimension. Bottle is a level 0 member of the Pkg_Type attribute dimension. The Pkg_Type dimension is associated with the Product base dimension. A level 0 member is the lowest level member in a dimension.
Essbase retrieves information on profits for the first quarter of the year for all members of the Product base dimension that are associated with both the level 0 attribute members of the Caffeinated attribute dimension (Caffeinated_True and Caffeinated_False) and the level 0 member Bottle of the Pkg_Type attribute dimension. The results should display as shown below:
Figure 132. Drilling Down on Attributes in Free-Form Reports
In addition to entering database member names into a free-form report, you can enter generation or level names directly into a worksheet to retrieve specific members. The Essbase application designer defines generation and level names for database dimensions in the database outline. You have two options for discovering what generation and level names are defined in the database:
To enter generation and level names directly into a free-form report:
Family is a generation name in the Product dimension. The name is already defined in the Sample Basic database.
Figure 135. Entering a Generation Name in a Free-Form Report
Essbase retrieves data for the member and generation names that you entered. The Family generation name expands to its individual members.
Figure 136. Result of Free-Form Retrieval with Generation Name
Figure 137. Entering a Level Name in a Free-Form Report
Essbase retrieves data for the level 0 members of the Year dimension, which are the individual months (Jan, Feb, Mar, and so forth).