Before You Begin

This tutorial shows you how to change numerical data columns from Treat As measures to Treat As attributes in a dataset to use in Oracle Analytics.

Background

In Oracle Analytics, number identifier (IDs) data columns such as order ID, customer ID, and store ID are treated as measures. This results in incorrectly aggregating these numeric attribute data columns. While you might want a count of the number of stores using Store ID, you don't need to perform aggregations on numeric data columns that are attributes.

You can use Treat As recommendations to bulk update the number IDs and other number attribute columns such as latitude and longitude. In the Treat As recommendations list, you can remove suggestions for number columns that you might want to remain as measures.

What Do You Need?

Create a Dataset

In this section, you create a dataset from usa_store_sales.xlsx.

  1. On the home page, click Create and click Dataset. In Create Dataset, click Drop data file here or click to browse.
  2. In File Upload, select usa_store_sales.xlsx and click Open.
  3. In Create Dataset Table from usa_store_sales.xlsx, click OK.


    Description of usa_store_sales_join_diagram.png follows
    Description of the illustration usa_store_sales_join_diagram.png
  4. Click Save. In Save Dataset As, enter usa_store_sales in Name and click OK.

Review the Treat As Recommendations

In this section, you review the columns in the dataset and see numeric data columns that are treated as measures such as the Store Id and Item Id columns.

  1. Click the usa_store_sales tab.


    Description of usa_store_sales_tab.png follows
    Description of the illustration usa_store_sales_tab.png
  2. Use the scroll bar to review the columns in the dataset.
  3. Click Table Recommendations Table Recommendations icon.
  4. In Table Recommendations, click Treat As, and then remove the check next to Units to keep the column as a measure and click Apply.


    Description of treat_as_recs.png follows
    Description of the illustration treat_as_recs.png
  5. Click Save Save icon.


    Oracle Analytics updates the selected columns to treat them as attributes instead of measures.

    Description of updated_columns.png follows
    Description of the illustration updated_columns.png

Learn More