Use Case 6: Add Derived Columns
You can add derived columns to a folder that uses a function or formula referencing custom or prebuilt elements that enables you to perform calculations and display derived values.
The Dim – Customer Sold To folder in the prebuilt subject area SCM – Sales Order doesn’t contain the required derived column Customer Index. In this use case, you add the Custom Index derived column, calculated using a CASE statement function, into the prebuilt Dim – Custom Sold To folder to associate the Customer Index with the Sold To Customer attributes. Since the derived column is created within the Dim – Customer Sold To dimension, it is automatically joined.
This use case requires Fusion SCM Analytics subscription. However, you can apply the concepts covered in this use case to any other Fusion Data Intelligence subscription. The use case may reference Autonomous Data Warehouse prebuilt tables and synonyms and mock custom database tables and views. If you’ve activated the specified Fusion Data Intelligence subscription, you may use the samples provided. The recommendation is to substitute the sample objects for your own custom Autonomous Data Warehouse objects such as custom table, materialized view, view, custom synonym, or data augmentation dataset synonym.
- Dim – Customer Sold To folder
- SCM – Sales Order prebuilt subject area
- Create a sandbox titled MySandbox5Mar25. See Create Sandbox. Or, edit an existing sandbox on the Semantic Model Extensions page; for example, by clicking the MySandbox5Mar25 sandbox.
Add a Derived Column to the Semantic Model
You edit the logical star to define the custom derived column expression formula. You can use the Fx Functions for syntax assistance, or copy the formula and paste it or manually type.
In this step, you edit the Fact – OM Sales Orders logical star to extend the prebuilt Dim – Custom Sold To dimension, creating a new derived column Custom Index. At runtime, Custom Index executes a CASE statement function evaluating the Sold-to-Customer column return a custom value based on defined if-then-else conditions.
Present the Derived Column in the Semantic Model
You modify the subject area to present the new custom derived column and select the folder to display it in.
The system automatically joins the new column to the dimension it's added to. In this step, you modify the SCM – Sales Order subject area to present the new derived column Custom Index, adding it to the pre-built Dim – Custom Sold To folder.
Apply and Publish the Customizations
You apply the changes to compile the sandbox and ensure that the sandbox is error free.
Then, you use the Activity tab to debug, resolve errors, and confirm that the Apply Changes action completes and is successful. Finally, you merge the changes to the main sandbox and publish the main user extensions to share the new extensions with consumers.
In this step, you apply the changes, use the Activity tab to monitor the status, merge the MySandbox5Mar25 sandbox to the Main sandbox, and then publish the main user extension.