7.0.2
Added Add Model View, allowing you to add resources and establish associations in model views created in folders.
Optimized the interaction and display effects of associations across resources.
Model Management allows you to create associations across multiple tables in Data Directory, making it easier for you (the IT personnel) to use the corresponding indicator and dimension fields. After the core fields are published, you can use them directly, which ensures consistent data caliber of key indicators and allows you to adjust the analysis granularity as needed, thereby improving product performance.
In Model Management, you can add data resources, establish associations across the resources, and manage the existing associations.
In Indicator Management and Dimension Management, you can create cross-table fields using multiple associated tables.
In Indicator Center, you can click Model Management to enter the page. You can click the Sales Data folder to view the model views within the folder, as shown in the following figure.
1. The admin assigns you (the IT personnel) the Use permission on Indicator Center and all the permissions on Supermarket Sales Data in Data Directory.
2. The admin has added the required data tables, on which you have been assigned permission, to the Supermarket Sales Data folder in Data Directory for data model creation.
Enter the Model Management editing page and select the corresponding mode of the data to be edited. You can select Extraction or Direct Connection, as shown in the following figure.
After selecting the data mode, you can select only the corresponding data. For example, if you select Extraction, directly connected data is not displayed in the data model.
First, create a folder and name it Sales Data to store the data to be analyzed, as shown in the following figure.
Click Add Model View, select the data tables on which you have permissions in Data Directory, set Model View Name to Sales Data, and add the model view to the Sales Data folder, as shown in the following figure.
After adding the model view successfully, you can view the data in the Sales Data folder in Resource List, as shown in the following figure.
Select Product Information Dimension, click the xxx icon, and drag the arrow to Product Sales Detail to create an association, as shown in the following figure.
You can edit the association, as shown in the following figure. The following table describes the functional logic of association editing in detail.
1
Association Field
You can set/modify the association field (key) of an association between two tables.
If two tables contain two fields with identical names and data types, the system will automatically establish an association between the two tables based on the two fields.
For details, see Subject Model Merging Principle.
2
Add Multiple Association Fields
You can click Add Multiple Association Fields and add multiple association fields to form composite primary keys. That is, an association between two tables can be based on multiple association fields.
The logic of the association with multiple association fields is as follows:
The 1 and N ends of composite primary keys are determined based on multiple fields.
That is, when you set the association to a 1:N relationship based on the Customer ID and Registration Time fields, the system will validate the 1 and N ends by concatenating the two fields. All other rules follow the same logic as the association with a single association field.
3
Association
1: 1: This can be analogized to the relationship between citizens and their ID numbers. Each citizen has only one ID number.
1: N: This can be analogized to the relationship between provinces and cities. Each province contains N cities.
N: 1: This can be analogized to the relationship between provinces and cities. Multiple cities belong to a province.
N: N: This can be analogized to the relationship between students and courses. A student can select multiple courses, and each course can also be taken by multiple students.
Since the Store ID field in Product Information Dimension Table is a unique field, the 1: N relationship is typically established between Product Information Dimension and Product Sales Details.
4
Analysis Direction
You are advised to set the analysis direction to be from the dimension table to the fact table.
The default analysis direction is from the 1-end table to the N-end table. The analysis includes operations such as summarizing data by group, filtering, and linkages. That is, you can filter the data in the N-end table based on the 1-end table.
When you set a 1: N relationship, the default analysis direction is from the 1-end table to the N-end table. You can set the analysis direction to be bidirectional, from the 1-end table to the N-end table, or from the N-end table to the 1-end table.
When you set a 1: 1 relationship, Analysis Direction is set to Bidirectional by default. You cannot modify the analysis direction.
When you set an N: N relationship, Analysis Direction is set to Bidirectional by default. You can set the analysis direction to be bidirectional, from table A to table B, or from table B to table A.
5
Enable Association
You can enable or disable the association as needed.
6
Delete Association
You can click Delete Association to delete an association between two tables.
Notes:
You can configure multiple paths, but the paths cannot take effect at the same time. You can specify which path will take effect.
You cannot set an association between the same table.
Since associations with the N: N relationship can cause severe performance degradation, you should avoid using such associations.
You cannot establish associations between direct-connected data and extracted data.
Select a folder, select a model view in the folder, click the icon, and click Add Association to create an association between tables across folders. On the Edit Association page, select the tables and association fields from the corresponding folders and tables to establish an association, as shown in the following figure.
The following figure shows the effect of the established cross-table association.
Display Association Attribute is selected by default. You can deselect it to hide the associations, as shown in the following figure.
You can click Global View in the upper right corner to view all resources and their associations in Model Management, as shown in the following figure.
滑鼠選中內容,快速回饋問題
滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。
不再提示
10s後關閉
Submitted successfully
Network busy