An Application Table organizes statistical data for specific business scenarios. It consolidates multiple Atomic Metrics, Derived Metrics, or Statistic Granularitys that share the same dimensions and Period. This table serves as a foundation for business queries, Online Analytical Processing (OLAP) analysis, and data distribution. This topic describes how to create an Application Table.
Overview
An Application Table consolidates business data from multiple metrics that share the same dimensions and time context. It uses a defined Period and associated dimensions to generate statistical Fields. These Fields help you create reports and perform analysis.
Before you begin
You have created a
Data Layer.Data Layers group tables with similar functions for easier access and management.Application Tables are typically placed in theApplication Data Service (ADS) Layer. This layer aggregates multiple metrics under a specificStatistic Granularity, such as a dimension or a combination of dimensions, for business queries and data distribution. You can also placeApplication Tables in other data layers based on your business requirements. For more information about how to create aData Layer, see Define a data layer.You have created a
Data MartorSubject Areato define the business context for the statistical data. For more information, see Data Mart and Subject Area.You have created a
Periodto define the time range for the statistical data. For more information, see Period.
Create an application table
Go to the Data Modeling page.
Log on to the DataWorks console. In the top navigation bar, select the desired region. In the left-side navigation pane, choose . On the page that appears, select the desired workspace from the drop-down list and click Go to Data Modeling.
On the Data Modeling page, click Dimensional Modeling in the top menu bar to go to the Dimensional Modeling page.
Create the
Application Table.On the Dimensional Modeling page, hover over the
icon and click .Configure the basic information for the
Application Table.
Parameter
Description
Data Layer
The
Data Layerwhere theApplication Tableresides. By default, the Application Data Service (ADS) Layer of the Application Layer is selected. You can also place theApplication Tablein other data layers based on your business requirements. For more information about how to create aData Layer, see Define a data layer.Mart/Subject
Select a created
Data MartorSubject Area. For more information, see Data Mart and Subject Area.Granularity
Select a dimension that defines the table's
Granularity. For more information, see Create a conceptual model: Dimension.Period
Specifies the time range for the statistical data to be consolidated in the
Application Table, such asLast 1 DayorLast 7 Days.You must select from existing
Periods. If no existingPeriodmeets your business requirements, you can create one. For more information, see Period.Modifier
Specifies the business scope of the statistical data.
You must select from existing
Modifiers. If no existingModifiermeets your business requirements, you can create one. For more information, see Modifier.Naming Rule
A checker that enforces the table naming conventions. You can select a checker that you created for a
Data Layerduring data warehouse planning. For more information, see Configure a data layer checker and Use a checker.Name
The name of the
Application Table. If aNaming Ruleis configured, the table name must comply with the rule.Display Name
The display name of the table.
Lifecycle
The retention period of the table in days. An
Application Tablecan be retained for up to 36,000 days.Owner
The
Ownerof theApplication Table. By default, this is the user who created the table.Description
The description of the table.
Click Save in the upper-left corner to save the
Application Tableconfiguration.
Add fields to the table
You can add Fields to the table in Shortcut Mode or Script Mode. Shortcut Mode supports the following import methods:
Import from Table/View: Import
Fields from an existing physical table or view in a compute engine. Search for and select an existing physical table or view from the Search for Existing Table/View drop-down list.NoteCurrently, you can only import
Fields from tables or views in MaxCompute, Hologres, and E-MapReduce (EMR) Hive engines.Import from Metrics: Select
Derived Metrics to add asFields to the model.
Shortcut Mode: Import from Table/View


In Shortcut Mode, click Import from Table/View next to Expand.
In the Search for Existing Table/View box, enter a name to search for a table or view. After selecting a table, choose to import all or some of its
Fields.NoteThe search supports fuzzy matching. You can enter a keyword to find all tables or views that contain the keyword in their names.
The search does not include tables in the development environment.
The
icon indicates importing all Fields.The
icon indicates importing a selection of Fields.
If you choose to import a selection of
Fields, a window appears showing allFields from the selected table. Select theFields you want to add to the model and click Import.If any imported
Fieldhas an empty Field Display Name, you can populate the display name with theField's description.
Shortcut Mode: Import from Metrics

In Shortcut Mode, click Import from Metrics next to Quick Import.
The window that appears displays all created
Derived Metrics. You can select the metrics you want to add asFields to theApplication Table. You can also filter for specificDerived Metrics by Period, Business Process, Modifier, or Atomic Metric.After you finish, click Import.
Script Mode
Script Mode allows you to define the model using code. After you click Script Mode, a window appears with auto-generated modeling code based on the information you have configured. Modify the model information in this window as needed and click OK.
Configure field information
After adding Fields, you can configure the Associated Field, Redundant Field, and Associated Granularity/Metric for each Field based on your business requirements.
Configure
Fieldproperties.By default, the
Fieldlist displays basic properties such as Field Name, Data Type, Field Display Name, Description, Primary Key, Not Null, Measurement Unit, and Actions. In the upper-right corner of theFieldlist, click Field Display Settings to select which properties to display and modify them as needed.Set the Associated Field Standard for the
Fields.Associating
Fields with aField Standardnormalizes their value content and range.A Field Standard unifies data that shares the same meaning but has different
Fieldnames by defining common value ranges, units of measure, and other attributes.Set the Redundant Field.
In a traditional star schema for
Dimensional Modeling, dimensions are stored in dimension tables and accessed through foreign keys in the fact table to reduce storage consumption. InIntelligent Data Modeling, you can designate frequently usedFields, such as user IDs or common analytical dimensions, asRedundant Fields. This practice improves downstream query efficiency, simplifies data access, and reduces table joins.In the Actions column for a
Field, click Redundant Field to configure its associatedFields.
Set the Associated Granularity/Metric.
For
Aggregate Tables andApplication Tables, for eachField, you can set an Association Type to specify the statistical type of its value. The available types are Statistical Granularity, Derived Metric, and Atomic Metric.Statistical Granularity: Used to associate with dimension tables and
Fields within those tables, such as product dimension or seller dimension.Derived Metric: Specifies the
Derived Metricfor the statistical value that theFieldrepresents. For example, the total payment amount for orders placed on the Hema App in the last 7 days.Atomic Metric: Specifies the
Atomic Metricfor the statistical value that theFieldrepresents. For example, the total payment amount.
NoteFor
Fields imported from a table or added inScript Mode, no default association type is set. You must set the association type manually.After configuration, you can specify the exact object to associate with the
Fieldin the Field Association column of theFieldlist.When you finish the settings, click Save in the upper-left corner.
Next steps
After creating the table, you still need to configure Field management, associations, and partition settings. Then, publish the table to the corresponding environment. For more information, see the following topics: