In this tutorial, you learn how to replace parameters in text functions with the Current keyword to make the functions more dynamic, more useful, and less redundant.
Approximately 40 minutes.
In Oracle® Hyperion Financial Reporting, Fusion Edition, you use text functions to display and retrieve information in reports. For example, you can display the member name and member alias (description) from the Point of View or from a grid dimension, or you can retrieve the currency ID for entities in Oracle® Hyperion Financial Management, Fusion Edition applications.
Most text functions require parameters that specify the grid, row, column, and page in the report.
The following is a list of some common text functions that require similar syntax:
Instead of hard coding text function parameters, you can use the Current keyword to make text functions more dynamic. Hard-coded parameters produce the same values, whereas the Current keyword produces dynamic values.
The Current keyword is supported for text functions that you enter in text cells or heading cells of a grid. It is supported in text boxes only when you repeat the text box for multiple pages of a grid. Refer to the Oracle® Hyperion Financial Reporting Studio, Fusion Edition Release 11.1.2.1 User's Guide for a complete list of text functions that support the Current keyword.
In this tutorial, you create two reports in Oracle® Hyperion Financial Reporting Studio, Fusion Edition (Reporting Studio).
The first report retrieves data from an Oracle® Essbase data source. In a text cell of the report, you add a text function with hard-coded parameters to display the member alias of products. The second report retrieves data from a Financial Management data source. In a text cell of the report, you add a text function with hard-coded parameters to display the currency ID of entities. In both reports, the hard-coded parameters reference the same row value and produce incorrect results. You replace the hard-coded parameters with the Current keyword to make the reports more dynamic and to produce the expected output.
You continue with the second report to add a member name and description to the page headings. You first add the text functions with hard-coded parameters which reference the same page value and produce incorrect results. You replace the hard-coded parameters with the Current keyword to produce the expected output.
Before starting this tutorial, you should:
In this topic, you create a report to display products and their aliases. You first define a text function with hard-coded parameters that produce the wrong results. You then modify the text function with the Current keyword to make the report more dynamic, and to produce the expected output.
To replace text function parameters with the Current keyword in text cells, perform the following steps:
. |
In Reporting Studio, create a report and insert a grid for an Essbase database. In this example, you use the Sample:Basic database, add the Product dimension to the rows, and the Year dimension to the columns.
|
||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
. |
For the Year dimension in column A, select the Children of Qtr1. Column A is an expanded data segment that expands to display the Jan, Feb, and Mar periods.
|
||||||||||||
. |
For the Product dimension in row 1, select the Children of Product. Row 1 is an expanded data segment that displays five products in this order: 100, 200, 300, 400, and Diet. The following table lists the products and their aliases from the Essbase database:
|
||||||||||||
. |
Select column A, and select Insert, then Column, and then Text to add a text column before column A.
|
||||||||||||
. |
Select cell [1,A], which is in row 1, column A. On the Cell Properties sheet, enter or select the MemberAlias function to display the alias for Grid1, row 1, and the Product dimension. When you run the report, the text function displays the aliases for the expanded products from row 1.
|
||||||||||||
. |
Set the user POV to the selections in the following table, and select File, and then Print Preview to preview the report.
The report displays incorrect aliases for the expanded products from row 1. When you hard code the row number in a text function for an expanded row, the text function retrieves the information for the top row. For expanded row 1, the MemberAlias function displays Colas for all products because Colas is the alias for the top row member, 100.
|
||||||||||||
. |
In cell [1,A], change the text function to <<MemberAlias(cur, cur, "Product")>> to display the alias for the current grid, current row, and Product dimension. The Current keyword is not case-sensitive, and you can enter it in an argument as current or cur.
|
||||||||||||
. |
Preview the report. When you use the Current keyword in rows that expand, the results are relative to the expanded row. As row 1 expands, the MemberAlias function retrieves the correct alias for each expanded segment of row 1.
|
In this topic, you create a report to display entities and their currency IDs. You first define a text function with hard-coded parameters that produce the wrong results. You then modify the text function with the Current keyword to make the report more dynamic and produce the expected output.
To replace text function parameters with the Current keyword in text cells, perform the following steps:
. |
In Reporting Studio, create a report and insert a grid for a Financial Management application. In this example, you use the Comma sample application, add the Entity dimension to the rows, the Period dimension to the columns, and the Scenario and Account dimensions to the page area.
|
||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
. |
For the Scenario dimension in the Pages list, select Actual and Budget.
|
||||||||||||||||||
. |
For the Period dimension in column A, select the Children of Quarter1. Column A is an expanded data segment that expands to display the January, February, and March periods.
|
||||||||||||||||||
. |
For the Entity dimension in row 1, select Children of Geographical.UnitedStates and Children of Geographical.Europe. Row 1 is an expanded data segment that displays four entities in this order: EastRegion, WestRegion, Italy, and UK. In the Financial Management application, the entities are assigned the following currencies:
|
||||||||||||||||||
. |
Select row 1, and select Insert, then Row, and then Data to add a data row. For the Entity dimension in row 2, select Children Of Geographical.Europe and Children of Geographical.UnitedStates. Row 2 is an expanded data segment that displays four entities in this order: Italy, UK, EastRegion, and WestRegion.
|
||||||||||||||||||
. |
Select row 2, and select Insert, then Row, and then Text to add a text row above row 2.
|
||||||||||||||||||
. |
Select column A, and select Insert, then Column, and then Text to add a text column before column A.
|
||||||||||||||||||
. |
Select cell [1,A], which is in row 1, column A. On the Cell Properties sheet, enter or select the HFMCurrency function to display the currency for Grid1, row 1, column B, and page 1. When you run the report, the text function displays the currencies for the expanded entities from row 1.
|
||||||||||||||||||
. |
Select cell [3,A]. On the Cell Properties sheet, enter or select the HFMCurrency function to display the currency for Grid1, row 3, column B, and page 1. When you run the report, the text function displays the currencies for the expanded entities from row 3.
|
||||||||||||||||||
. |
Set the user POV to these selections, and select File, and then Print Preview to preview the report.
The report displays incorrect currencies for the expanded entities from rows 1 and 3. When you hard code the row number in a text function for an expanded row, the text function retrieves the information for the top row. For expanded row 1, the HFMCurrency function displays USD for all entities because USD is the currency ID for the top row member, EastRegion. For expanded row 3, the HFMCurrency function displays EUR for all entities because EUR is the currency ID for the top row member, Italy.
|
||||||||||||||||||
. |
Delete row 3. In cell [1,A], change the text function to <<HFMCurrency(cur, cur, cur, cur)>> to display the currency for the current grid, row, column, and page. The Current keyword is not case-sensitive, and you can enter it in an argument as current or cur.
|
||||||||||||||||||
. |
Preview the report. When you use the Current keyword in a row that expands, the results are relative to the expanded row. As row 1 expands, the HFMCurrency function retrieves the correct currency for each expanded segment of row 1. |
In this topic, you customize the page headings. You first define text functions with hard-coded parameters that produce the wrong results. You then modify the text functions with the Current keyword to make the report more dynamic and produce the expected output.
To replace text function parameters with the Current keyword in page headings, perform the following steps.
. |
In Reporting Studio, continue to work with the same report. Increase the height of row 2.
|
---|---|
. |
From the Pages drop-down list, select Actual, Budget to display the Page Properties sheet. From the Page Printing Positioning area of the Page Properties sheet, select Same Page.
|
. |
Preview the report. The following figure displays a portion of the report: By default, the page headings display the scenario and account member names.
|
. |
Modify the page heading to display the scenario member name and the account member description. From the Pages drop-down list, select Actual, Budget to display the Page Properties sheet. For the Scenario heading on the Page Properties sheet, select Custom Heading. Insert the following functions to display the scenario member name and the account member description. In these text functions, you reference Grid1, page 1, and the dimension names.
|
. |
From the Page Properties sheet, select Account and select Custom Heading. Leave the custom heading text box blank. Format the page headings with a larger font and color.
|
. |
Preview the report. When you hard code page 1 in the text functions, all page headings display the scenario and account members from page 1, Actual and Direct Costs.
|
. |
In the page headings, replace the reference to page 1 with the Current keyword.
|
. |
Preview the report. When you use the Current keyword for the page parameter in text functions, the functions display the correct scenario and account members for each page.
|
In this tutorial, you should have learned how to:
About Oracle | Oracle and Sun | | Subscribe | Careers | Contact Us | Site Maps | Legal Notices | Terms of Use | Your Privacy Rights | |