Before you Begin
This tutorial shows you how to create a list filter from a double column type data element, and create and bind a parameter to the list filter in an Oracle Analytics subject area.
Background
A double column type data element uses two columns. One column represents the data descriptor value and is displayed to the end user. The second column represents an identifier of the data descriptor and isn't displayed to the end user. The table shows as a double column data element example using vehicle type key IDs (values) and descriptors.
Descriptor Identifier (Vehicle Key Code/Value) | Data Descriptor (Vehicle Display Name) |
---|---|
101 | All-terrain |
201 | 4 door sedan |
301 | 2 door coupe |
401 | Wagon |
501 | Truck |
When Oracle Analytics processes a double column type data element as part of a query or as part of a filter, it generates and issues SQL statements to the server using the code values rather than display values. The descriptor column and the identifier column might not use the same data type.
You might not know which data elements are defined as the double column data type in your subject area. Oracle Analytics detects the data element's definition as a double column type and sets the values needed to bind a double column type data element list filter to a parameter.
You perform the same steps to create a parameter from a double column type data element as you would for other columns in the dataset.
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.
- Sign in to Oracle Analytics.
- On the Home page, click Data, hover over the subject area, click Actions , and then select Create Workbook.
- In the Data pane, select and drag a double column to the Visualize canvas.
This example uses the P10 Product data element. Oracle Analytics automatically creates a table visualization.
- Click Save . In Save Dataset As, enter a Name and click Save.
Create and Bind a Parameter to a Double Column List Filter
In this section, you create a list filter with the double column data type data element, and create and bind a parameter.
- In the Data pane, select and drag the double column to the Filter bar.
The list filter dialog shows the display names in the P10 Product column. The product key identifier values aren't displayed.
- In the list filter, select some values to use in the filter.
In this example, six products are selected from the list of available values.
- Click Bind to Parameter and select Create Parameter. Click outside of the list filter dialog to close it.
- Click Parameters .
Oracle Analytics adds the parameter to the Parameters list.
- Right-click the parameter created by binding to the list filter, select Edit Parameter to see the parameter definition.
Oracle Analytics sets the data type to that of the double column's ID value, sets Available Values to Column and the Column Name, and sets the Initial Value to the values selected in the list filter.
Identify a Double Column Data Element
In this section, you create a calculation to reveal the hidden identifier key values for the double column type data element. You can use this approach when you aren't sure if the data element is a double column type.
If the data element isn't a double column, the expression editor provides a validate error message:
The logical column referenced by DESCRIPTOR_IDOF doesn't specify a Descriptor ID column.
- In the Data pane, right-click My Calculations and select Create Calculation.
- In New Calculation, enter a Name. In the expression field, enter
DESCRIPTOR_IDOF (column name)
Your expression should look similar to
DESCRIPTOR_IDOF (P10 Product)
. Your double columns probably aren't labeled as in this demo subject area. - Click Validate and click Save.
- Drag the key calculation element to the table to see the values.
Learn More
Create and Bind a Double Column List Filter to a Parameter in Oracle Analytics
F87402-01
November 2023
Copyright © 2023, Oracle and/or its affiliates.
Learn how to create and bind a double column list filter to a parameter in an Oracle Analytics subject area.
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.