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:

<<MemberName("GridName", Row/Column/Page, "DimensionName")>>

<<MemberAlias("GridName", Row/Column/Page, "DimensionName")>>

<<MemberDescription("GridName", Row/Column/Page, "DimensionName")>>

<<HFMCurrency("GridName", Row, Column, Page)>>

<<GetCell("GridName", Row, Column, Page)>>

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.

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.

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:

Product

Alias

100

Colas

200

Root Beer

300

Cream Soda

400

Fruit Soda

Diet

Diet Drinks

.

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.

Dimension

Member

Measures

Profit

Market

East

Scenario

Actual

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 Account dimension in the Pages list, select Children of OperatingExpenses (Inclusive).

.

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:

Entity

Currency ID

EastRegion

USD

WestRegion

USD

Italy

EUR

UK

GBP

.

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.

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.

Dimension

Member

Year

2006

View

Periodic

Value

<Entity Currency>

ICP

[ICP None]

Product

TotalProducts

Customers

TotalCustomers

Channel

[None]

UnitsFlows

[None]

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.