Perform Data Analysis using Spreadsheet Add-ins

Use Data Analysis to analyze data in Oracle Autonomous AI Database from a spreadsheet.

You can run queries on the following types of data from the database and view them in different formats.

You can run custom SQL queries, add calculated measures, and retrieve data using a faceted search capability on specific columns. You can dynamically apply filters to query results and view the data in the sheet. You can query Analytic Views and select measures, hierarchies, and levels from the query.

The Data Analysis Panel

The Data Analysis panel contains the following:

You can select Autorun SQL to update the query and the data visualization or the filters automatically in the worksheet.

Run Queries from Data Analysis

Note: Connect to your database from a spreadsheet to use the features of the add-in.

  1. Start Microsoft Excel or Google Sheets and open a workbook.

  2. From the Oracle Database menu select Data Analysis.

  3. The Data Analysis panel opens Base Query and displays all tables and columns for the schema by default.

    Description of the illustration data-analysis-1-base-query.png

    The query written in the SQL editor is the Base Query. You can use the Search field to find and select objects from the database.

  4. Select the object or columns that you want to include in the query.

    You can drag and drop a column or the entire table to the query area to create a SELECT query for the columns or the table.

  5. Review the SQL query generated in the query editor. You can edit the query in this box.

  6. The first button below Base Query, a circle with a triangle in it, is the Run button. Click this button to run the custom query.

The add-in displays data from your query result in the selected sheet. You can make changes to the query, such as update the columns and click Run again to refresh the data.

Similarly, use the drop-down in Base Query to select AV (Analytic View), View, or Catalog and run queries against the selected object. With Analytic View, you can select measures, hierarchies, and levels, add filters and calculated measures, and view the result in the worksheet.

While retrieving data from an Analytic View, you can create a custom query, for example select specific hierarchies and select calculations. The add-in configures your query and returns the result in the worksheet.

Visualize Query Results

Use this option to select the format for query results in the worksheet. The box below Visualization displays all columns from the base query. It provides the following modes:

Description of the illustration data-analysis-2-visualization.png

Use Aggregate Functions for Numeric Columns

For numeric columns you can use aggregate functions, such as SUM, MIN, MAX, AVG, COUNT, and DISTINCT COUNT. Click a numeric column name to open the list of Aggregation functions. For example, to calculate the average of a sales value, click the column name Sales under Values and select Average from the list of Aggregation functions.

Note: Numeric columns are indicated by a hash (#) before the column name.

Apply Filters

Use the Filters section to narrow the query result. Data Analysis generates a filter for each value in the column retrieved from the query result.

Description of the illustration data-analysis-3-filters.png

The Filters section includes two types of filters:

You can filter different columns on the faceted filter panel and view only specific data from the results in the worksheet. For example, to view the customer reports by Region, click the Faceted Filter and select Asia under Region_ID.

Filters work instantly on the query results in the worksheet.