Before You Begin

This tutorial shows you how to create a data flow with a subject area as the data source in Oracle Analytics.

Background

Use a data flow to organize, manipulate, combine, and aggregate data to produce curated datasets. You can create a data flow with a subject without first creating a local subject area in Oracle Analytics.

Subject areas contain presentation tables, columns, hierarchies, and levels. A subject area represents your business model. Your subject area could represent a single subject or support a specific business role.

Running the data flow generates a dataset that you can use in a workbook.

What Do You Need?

  • Access to Oracle Analytics
  • Access to the Sample Sales subject area or a subject area on your instance

Create a Data Flow

In this section, you create a data flow with the Sample Sales subject area.

  1. Sign in to Oracle Analytics.
  2. On your home page, click Create and click Data Flow.
  3. In Add Data, click a subject area Subject area icon, and then click Add.


    Description of dataflow_wo_columns.png follows
    Description of the illustration dataflow_wo_columns.png
  4. Expand the Time folder under Sample Sales and double-click TO5 Per Name Year to add input to the dataset.


    Description of dataflow_sample_sales.png follows
    Description of the illustration dataflow_sample_sales.png
  5. Expand Products, hold down the Ctrl key, select P1 Product, P2 Product Type, P3 LOB, and P4 Brand, and then click Add Selected.


    A green checks indicate that you have selected these columns to include in the dataset.

    Description of product_columns.png follows
    Description of the illustration product_columns.png
  6. Enter Revenue in Search to find the revenue column. Click Revenue under Basic Facts and click Add Selected.
  7. In Selections, select Revenue, click Action and use Move up, or drag Revenue to the top of the selections list.


    You can also use the up and down arrows Up and down arrows icon to rearrange the columns.

    Description of revenue_basic_fact.png follows
    Description of the illustration revenue_basic_fact.png

Rename Column Selections

In this section, you can change the columns names without using the Transform Columns step.

  1. Double-click the 1-Revenue column, enter Revenue without 1- to rename the column.


    You can click Reset to revert to the original column name.

    Description of rename_column.png follows
    Description of the illustration rename_column.png
  2. Click the T05 Per Year NameDouble-click T05 Per Year Name, delete T05 Per Name, and then enter Year to rename the column to Year.
  3. Double-click P1 Product, delete P1 to rename the column to Product.
  4. Double-click P2 Product Type, delete P2 to rename the column to Product Type.
  5. Double-click P3 LOB, enter Line of Business.
  6. Double-click P4 Brand, delete P4 to rename the column to Brand.

  7. Description of renamed_columns.png follows
    Description of the illustration renamed_columns.png

Add Data Flow Steps

In this section, you add a data flow step and the Save Dataset step required to run the data flow.

  1. In Data Flow Steps Data flow steps pane icon, double-click Aggregate Aggregate step icon to add it to the sample sales node.
  2. Click the Function list list icon in the Revenue row and select Average.
  3. On the Aggregate node, click Add Step Add data flow step icon and then click Save Data Save data icon.
  4. In Save Dataset - Save Data, enter a Name for the dataset that isn't the same name as the data flow.


    Description of save_dataset.png follows
    Description of the illustration save_dataset.png
  5. Click Save Save icon. In Save Data Flow As, enter a Name and click OK.
  6. Click Run Data Flow Run data flow icon .
  7. Click Go back Go back icon.
  8. On your home page, click Actions Actions icon in the dataset generated by the data flow and click Inspect.
  9. In Inspect, click Data Elements to see the dataset's columns.


    Description of inspect_data_elements.png follows
    Description of the illustration inspect_data_elements.png

Learn More