Dimensional modeling overview
DataWorks Data Modeling follows the Kimball dimensional modeling methodology. You can use dimensional modeling to design and create dimension tables, fact tables, aggregate tables, and application tables based on your business requirements, and publish the models to the corresponding development engines. You can also use reverse modeling to generate models from existing physical tables.
Data Modeling is used for data warehouse planning and design. You can use models to create physical tables in the corresponding compute resources. Deleting a model does not affect the physical table.
Modeling perspectives
Dimensional modeling lets you organize model tables into the Data Import Layer, Common Layer, and Application Layer. Select a layer based on your requirements. Different layers support different management perspectives.
-
Common Layer: Processes and integrates shared data from the data import layer to establish unified metrics and dimensions and build reusable detailed fact data and aggregate data for analysis and statistics. You can manage model tables from the Data Domain or Business Category perspective.
-
Application Layer: Uses data processed and integrated in the common layer to produce customized statistics for specific application scenarios or products. You can manage model tables only from the Business Category perspective.
-
Unlayered: Model tables that are not assigned to the Common Layer or Application Layer appear in Unlayered.
After you select a layer, you can create tables only in that layer. In the directory tree, switch between the management perspectives supported by the layer to view and manage its model tables.
Dimension
A dimension is a perspective from which you measure and examine business activities. Dimensions describe the context of data analysis. In dimensional modeling, they define the context or conditions in which a business process occurs, helping you understand data from different perspectives. For example, in e-commerce transactions, products, regions, and time can serve as dimensions.
For more information about how to design and create dimensions, see Create a conceptual model: dimension.
Dimension table
Design dimension tables based on your planned business data domains.
Extract all the dimensions that possibly exist in each data domain, and store the dimensions and attributes of the dimensions in dimension tables. For example, when you analyze e-commerce business data, possible dimensions (attributes of each dimension) include order (order ID, order creation time, buyer ID, and seller ID), user (gender and birthdate), and commodity (commodity ID, commodity name, and commodity put-on-shelf time). You can create the following dimension tables: order dimension table, user dimension table, and commodity dimension table. The attributes of each dimension are used as the fields in the dimension table. You can deploy the dimension tables in a data warehouse and perform extract, transform, and load (ETL) operations to store dimension data in the format defined in the dimension table. This allows business personnel to access the data for subsequent data analysis.
For more information about how to design and create dimension tables, see Create a logical model: dimension table.
Fact table
Design fact tables based on your planned business processes.
Sort and analyze data that is generated in each business process, and store the data in fact tables as fields. For example, you can create a fact table for the business process of placing an order, and record the following information as fields in the fact table: order ID, order creation time, commodity ID, number of commodities, and sales amount. You can deploy the fact tables in a data warehouse and perform ETL operations to summarize and store data in the format defined in the fact table. This allows business personnel to access the data for subsequent data analysis.
For more information about how to design and create fact tables, see Create a logical model: fact table.
Aggregate table
An aggregate table organizes statistical data for multiple derived metrics in a data domain that share the same time period and dimensions. It represents a high-level abstraction of business data and supports subsequent business queries, online analytical processing (OLAP), and data distribution. For more information about how to design and create aggregate tables, see Create a logical model: aggregate table.
Application table
An application table is designed for a specific business scenario. It organizes statistical data for multiple atomic metrics, derived metrics, or statistical granularities that share the same time period and dimensions, supporting subsequent business queries, OLAP analysis, and data distribution. Design application tables based on your business requirements and application scenarios. For more information about how to design and create application tables, see Create a logical model: Application table.
Reverse modeling
Reverse modeling generates logical models from physical tables. It lets you quickly create models without repeating the modeling process, saving you time. For more information about reverse modeling, see Reverse modeling: Create models from physical tables.