With Input From

Jay Pearson, Senior Principal Product Manager 

Fusion AI Data Platform (FAIDP), is a family of prebuilt, cloud-native analytics applications for Oracle Fusion Cloud Applications that provide ready-to-use insights to help improve decision-making. It’s extensible and customizable, allowing customers to ingest data and expand the base semantic model with additional content. 

Introduction

External Applications allow you to customize your semantic model to better align with business needs. For instance, adding new dimensions to a logical star provides the context and descriptive details required to analyze numerical facts from a custom perspective. 

For a detailed overview of External Application benefits and help in determining this framework fits your implementation, see About Semantic Model Customization and Merge Your External Applications.  

This article explains how to merge an FAIDP external application semantic model to add a custom dimension and join it to a prebuilt fact. Follow the steps below to learn how to import a custom dimension into an external application and link it to a prebuilt fact in the semantic model Sandbox. 

Benefits of this Approach

This approach provides a scalable, efficient, and maintainable customization framework by combining External Application development with Semantic Model Extension (SME). It allows most customizations (such as custom facts, dimensions, and subject areas) to be developed in the External Application while preserving the integrity of prebuilt Logical Table Sources (LTSs). 

This is especially useful when there are extensive customizations, such as joining custom dimensions to prebuilt facts, because it makes development easier to manage in the External Application while you can use SME for simpler changes. Where customizations are limited, you can obtain the same outcome directly within SME. 

Steps to add custom dimension and join it to the prebuilt fact using External Application

Migrate or Create the Dimension

Import or migrate your custom dimension into a custom schema in the Oracle Autonomous AI Lakehouse associated with Oracle Fusion Data Intelligence. You can create the dimensions (as a table, view, or synonym) using Data Augmentation, manual or programmed SQL, or any ETL tool. This example shows creating a database view. See Create a Custom Database Schema and Migrate or Create Database Objects.

CREATE OR REPLACE VIEW FDI_CUSTOM_DEPARTMENT_D_V
AS
SELECT ORGANIZATION_ID || INVENTORY_ITEM_ID AS ORG_ITEM_KEY,
ORGANIZATION_ID, INVENTORY_ITEM_ID,
CASE SUBSTR(INVENTORY_ITEM_ID,-1,1)
WHEN '1' THEN 'Clothing'
WHEN '2' THEN 'Shoes'
WHEN '3' THEN 'Cosmetics'
WHEN '4' THEN 'Furniture'
WHEN '5' THEN 'Gardening'
WHEN '6' THEN 'Hardware'
WHEN '7' THEN 'Home Appliances'
WHEN '8' THEN 'Houseware'
WHEN '9' THEN 'Paint'
WHEN '0' THEN 'Sporting Goods'
ELSE 'Other'
END DEPARTMENT
FROM OAX$OAC.DW_INVENTORY_ITEM_D
;

Grant Semantic Model Access

Ensure that the OAX$OAC user can access each of the database objects that you plan to merge. See Grant Semantic Model Access.  

GRANT SELECT ON OAX_USER.FDI_CUSTOM_DEPARTMENT_D_V TO "OAX$OAC"; 
COMMIT;

Bring the Custom Dimension to the Physical Layer of the Semantic Model Template  

Before completing this step, you must first configure Oracle Analytics Client Tools (Oracle BI Administration Tool) and export the Semantic Model Template. See Configure Oracle Analytics Client Tools (Oracle BI Administration Tool) and Export the Semantic Model Template. These processes are outlined in detailed in this blog article Merge External Applications.

  1. Import the view into External Application. 
Import View
Import View
  1. Create an alias for the view.
Create Alias
  1. Define the primary key.
Define Primary Key
  1. Drag and drop the view to the Business Model and Mapping layer. 
Business Model and Mapping Layer
Business Model and Mapping Layer
  1. Define the logical keys. 
Logical Keys
Logical Keys
  1. Create a dummy join with the “Fact – Dummy” table.

Note: Use Fact – Dummy only to join your custom dimension. This step is required for two reasons:

  • To avoid a consistency warning/error in the external application.
  • This custom dimension appears in SME for joining to the fact table.
Fact - Dummy
Fact – Dummy
  1. Create a dimensional hierarchy. 
Dimensional Hierarchy
Dimensional Hierarchy
  1. Define dimension keys. 
Dimension Keys
Dimension Keys
Key
Key
  1. Perform the consistency check and save the external application.
Consistency Check
Consistency Check

Import and Merge the Semantic Model 

Use the Semantic Model Import option to merge the semantic model. See Import the Semantic Model and Merge External Applications. 

Link the Custom Dimension to the Prebuilt Fact in the Semantic Model Sandbox 

  1. In the Oracle Fusion AI Data Platform Console, click Semantic Model Extensions. 
Semantic Model Extensions
Semantic Model Extensions
  1. Click Create Sandbox. 
Create Sandbox
Create Sandbox
  1. Click Perform action. 
Perform Action
Perform Action
  1. Click Manage Logical Star
Manage Logical Star
Manage Logical Star
  1. Select Edit Logical Star
Edit Logical Star
Edit Logical Star
  1. Click Add Dimension and select Add Existing Dimension
Add Existing Dimension
Add Existing Dimension
  1. Select the dimension and click OK. The dimension added in the external application is available here. 
Add Table
Add Table
  1. Define the physical join as described below. 
Physical Join
Physical Join
  1. Set the content level to detail and click OK. 
Content Level
Content Level
  1. Click Perform Action and then select Manage Subject Areas. 
Manage Subject Areas
Manage Subject Areas
  1. Click Add New Custom Elements, select Department, and then click Apply. 
Add New Elements
Add New Elements
  1. Click Next
Next
Columns Added
  1. Rename the columns and click Next
Rename Columns
Rename Columns
  1. Click Finish. 
Finish
Finish
  1. Click Apply Changes to apply the sandbox. 
Apply Changes
Apply Changes
  1. Click Merge to Main Sandbox. 
Merge Sandbox
Merge to Main
  1. Click Publish Model to publish the model. 
Publish Model
Publish Model

Validate the Results 

Once the external semantic model has been successfully imported and merged, verify that the custom dimension can successfully join the prebuilt fact. See Validate the Results.  

  1. Log in to the Oracle Analytics Cloud console, click Create, and then Workbook
Create Workbook
Create Workbook
  1. Select the SCM – Sales Orders subject area and click Add to Workbook. 
Subject Area
Subject Area
  1. The column is now available in the subject area. 
Department
Department
  1. Create the report and validate the results. 
Workbook
Workbook

Conclusion

This article demonstrates how to import a custom dimension into a Fusion AI Data Platform External Application, join it to a prebuilt fact, merge with SME, and expose to a subject area.

Call to Action 

For more information on customizing Fusion AI Data Platform (formerly known as Fusion Data Intelligence) using Semantic Model Extensions. see Customize Oracle Fusion Data Intelligence. Now that you’ve read this article, try it yourself and let us know your results in the Oracle Analytics Community, where you can also ask questions and post ideas.