Before You Begin
This 15-minute tutorial shows you how to output multiple datasets from a data flow, add columns, and execute a data flow sequence. You also use the datasets output from executing the sequence to create analyses to verify that your results.
Background
In a data flow, you can add a branch to any node, except the train machine learning model node, to output multiple datasets from a single data flow. You can apply different transformations on each branch to create unique datasets.
In this tutorial, you create a sequence to execute multiple data flows using a specific order in a transaction.
You also create visualizations to verify your results.
This is the third tutorial in the Prepare and Analyze Data in Oracle Analytics series. Read the tutorials in the order listed.
- Explore Data Flows
- Analyze Data
- Create Aggregated Datasets
What Do You Need?
- Access to Oracle Analytics
- Access to the Donations by School dataset
Create Multiple Datasets
In this section, you create a data flow that has a branch step so that when the data flow is executed, you have two distinct datasets.
- Sign in to Oracle Analytics.
- On the Home page, click Create, and then click Data Flow.
- In Add Dataset, click Donations by School, and then click Add.
- In data flow steps, double-click Branch.
The Branch step adds two Save Data steps to the data flow.
Description of the illustration branch_step.png - Click Add a step
on the branch before the first Save Data step, and then select Select Columns. In Select Columns, click Remove all.
- Hold down the Ctrl key, and select PRIMARY_FOCUS_SUBJECT, Donation by Population, Average School Donation by Income, and then click Add Selected.
Description of the illustration selected_columns.png - Click Add a step
between Select Columns and Save Data, and then click Aggregate. In Aggregate, select Average from the Function list in both rows.
Description of the illustration aggregate_step.png - Click Save Data on the first branch. In Save Dataset, enter
Donations by Primary Subject Area
in Name. In the Save data to field, select Dataset Storage to save the data in Oracle Analytics.Description of the illustration primary_subject_ds.png
Define the Second Branch
- In the data flow, click Add a step
on the second branch, and then click Select Columns. In Select Columns, click Remove all.
- Hold down the Ctrl key, select SCH_STATE, Donation by Population, Average School Donation by Income, and then click Add Selected.
- Click Add a step
on the Select Columns node, and select Aggregate. In Aggregate, select Average from Function in both rows.
Description of the illustration donations_by_state.png - Click Save Data on the second branch. In Save Dataset, enter
Donations by State
in Name. In the Save data to field, select Dataset Storage. - Click Save
. In Save Data Flow As, enter
Aggregate Donations
and click OK. - Click Run Data Flow. After the data flow completed message appears, click Go back
.
Inspect the Datasets
- On the Home page, search for the Donations by Primary Subject Area dataset. Select the Donations by Primary Subject Area dataset, click the Actions
, and then select Inspect.
- In the Donations by Primary Subject Area dataset, click Data Elements to view the columns, and then click Close.
- On the Home page, search for or select the Donations by State dataset. Select the Donations by State dataset, click the Actions
, and then select Inspect.
- In the Donations by State dataset, click Data Elements to view the columns, and then click Close.
Create a Data Flow Execution Sequence
When you use dynamic data sources the data flows in the sequence, you can create a schedule to run the sequence.
- On the Home page, click Create, and then click Sequence.
- In the Data Flows panel, drag School Donations to Selections.
- Drag and drop Aggregate Donations, under School Donations in the Selections list.
Description of the illustration df_sequence.png - Click Save
. In Save Sequence As, enter
Donations Sequence
in Name, and then click OK. Click Execute Sequence.
- Click Go back
. On the Home page, enter
Donations
and click Search to view Donations Sequence and its output.Description of the illustration sequence_run_results.png
Create Visualizations
- On the Home page, select Donations by Primary Subject Area dataset, click the Actions
, and then select Create Workbook.
- In the Data Elements pane, hold down the Ctrl key, and then select the following:
- PRIMARY_FOCUS_SUBJECT
- Donation by Population Average
- Average School Donation by Income Average
- Drag the data elements to the canvas.
Description of the illustration primary_subject_viz.png - Click Go back
.
- On the Home page, select the Donations by State dataset, click the Actions
, and then select Create Workbook.
- In the Data Elements pane, hold down the Ctrl key, and then select the following:
- SCH_STATE
- Donation by Population Average
- Average School Donation by Income Average
- Drag the data elements to the canvas.
Description of the illustration donations_by_state_viz.png
Learn More
Create Aggregated Datasets in Oracle Analytics
F22681-06
March 2025
Learn how to create aggregated datasets and execute those datasets in a sequence.
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.