Before You Begin
This tutorial shows you how to create and bind a parameter to a request variable.
Background
This tutorial uses a subject area to create a workbook that enables a end user to select a currency, for example, Euros instead of US dollars when displaying amounts. You add a dashboard filter control and select a data element representing values. You use the data element as a filter and bind it to a parameter. The result overrides the request variable defined in the semantic model. In your workbook you use these steps:
- Design a workbook that enables your users to select a value
- Create a parameter
- Bind the parameter to a request variable
What Do You Need?
- Access to Oracle Analytics
- Access to a subject area as a content author
Create a Workbook from a Subject Area
In this section, you select a subject area to create a workbook. This tutorial uses the A - Sample Sales subject area as an example. This workbook includes two visualizations. The table visualization uses Product Type, Brand, and Converted Revenue as the data elements.
- Sign in to Oracle Analytics.
- On the Home page, click Create. In Create, click Workbook.
- In Add Data, click the subject area to use as the data source and click Add to Workbook.
Description of the illustration add_data_subject_area.png - In the Data
pane, hold-down the Ctrl key and select two attributes (P4 Brand and P2 Product Type) and a measure (120 Converted Revenue) data elements. Right-click, Pick Visualization, and then select Table
.
- In the Data pane, select the measure (120 Converted Revenue) and drag it to Tile in the Grammar
pane.
- Click Properties
. In Properties, click Auto in the Title row and select None.
- In Properties, click Totals
. In the Subtotal row, click None and select the attribute to use for the subtotal.
The table visualization shows subtotal for Brand.
Description of the illustration rev_prod_brand.png - Click Save
. In Save Workbook, enter a Name and click Save.
Create a Second Visualization and Parameter
In this section, the table visualization acts as a shortcut for creating a second visualization in the workbook. The visualizations show revenue in US dollars.
- In the table visualization, click the menu toggle
. Click Menu, select Edit, and then select Duplicate Visualization.
- In the Data pane, select and drag Product (P1 Product) to replace Product Type (P2 Product Type) in Rows under the Grammar pane.
- Click Table in the visualization list and select Pivot
.
Description of the illustration pivot_prod_rev_brand.png - Click Parameters
. In Parameters, click Menu
and select Add Parameter.
- In Create Parameter, enter
Select a Currency
in Name. In the Available Values list, select Value. - Click Add Value
twice to create three empty value fields. Enter
USD
,EUR
, andAUD
one in each of the value fields. - In the Initial Value list, click Value
, and then select USD. Click OK.
Description of the illustration select_curr_param.png - Click Save
.
Bind a Request Variable to a Parameter
In this section, you create a dashboard filter control to hold the parameter that enables selecting the currency used in the workbook.
- Click Visualizations
. Under Dashboard Controls, select Dashboard Filters
, drag it to the canvas, and then release above the existing visualization.
- Click Parameters
. In Parameters, grab Select a Currency and drag it to the Dashboard Filters control.
- Click Properties
. In Properties, click Filter Controls
. In the Filter Type row, click List Box and select Inline List.
Description of the illustration inline_curr_selections.png - In Parameters
, click Menu
and select Request Variable Binding.
- In Request Binding, enter the name of the request variable for currency as it is defined in the semantic model.
In this tutorial the semantic model request variable is PREFERRED_CURRENCY.
- Click the Parameter list, click Select a Currency parameter, and then click OK.
In this tutorial, the PREFERRED_CURRENCY request variable is bound to the Select a Currency parameter.
- Click Save
. Click Preview to test Select a Currency.
Description of the illustration preview_select_curr.png
Learn More
Bind a Request Variable to a Parameter in Oracle Analytics
G12946-01
September 2024
This tutorial shows you how to bind a request variable to a parameter in Oracle Analytics.
This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited.
If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, then the following notice is applicable:
U.S. GOVERNMENT END USERS: Oracle programs (including any operating system, integrated software, any programs embedded, installed or activated on delivered hardware, and modifications of such programs) and Oracle computer documentation or other Oracle data delivered to or accessed by U.S. Government end users are "commercial computer software" or "commercial computer software documentation" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, the use, reproduction, duplication, release, display, disclosure, modification, preparation of derivative works, and/or adaptation of i) Oracle programs (including any operating system, integrated software, any programs embedded, installed or activated on delivered hardware, and modifications of such programs), ii) Oracle computer documentation and/or iii) other Oracle data, is subject to the rights and limitations specified in the license contained in the applicable contract. The terms governing the U.S. Government's use of Oracle cloud services are defined by the applicable contract for such services. No other rights are granted to the U.S. Government.
This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware in dangerous applications.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
Intel and Intel Inside are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Epyc, and the AMD logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group.
This software or hardware and documentation may provide access to or information about content, products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services unless otherwise set forth in an applicable agreement between you and Oracle. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services, except as set forth in an applicable agreement between you and Oracle.