Supported the auto-selection of recommended
model associations (No need to configure manually)
In a subject, you can configure the model relationship of tables within the subject. Subject model configuration can facilitate multi-table analysis.
Click to go to the setting interface of subject model in the Data tab. You can set the model relationship between tables by dragging and dropping.
Limits of configuring a model relationship:
There cannot be a model relationship between a direct dataset and an extract dataset.
If a direct dataset comes from different data connections, then no model relationship can be established between them.
Only when a direct dataset comes from a direct databases supporting integrated analysis with Excel, can it establish a model relationship with the Excel dataset, otherwise it cannot.
Create a subject and add data into it.
In this subject, both extract data and real-time data are added simultaneously.
Click .
Extract tables are displayed in blue and direct tables are displayed in purple.
Drag a table into the table that needs to configure the subject relationship, and you can generate the connection and configure the model relationship.
For example, the field Brand Code is in both the table Brand Dimension and the table Store Sales Statistics. Therefore, you can establish the model relationship between them.
Generating Model Relationship
Drag the table Brand Dimension into the table Store Sales Statistics to generate relationship.
Editing Model Relationship
After you have established the connection, the Edit Relationship interface will automatically pop up. You can modify Match field and Model Relationship.
Match field:
It is the link between two tables that are connected. If both tables have the field Brand Code, then it is the link that establishes the connection.
The type of the matching fields in two tables needs to be the same.
Model Relationship:
The system will select the most suitable model association based on your data. Considering performance impacts, you are advised to select correct model associations.
Model Relationship
Example
1:1 (one-to-one)
The relationship between a citizen and their ID number, where one person only has one ID number.
1:N (one-to-many)
The relationship between states and cities, where a state has many cities.
N:1 (many-to-one)
Multiple cities belong to one state.
N:N (many-to-many)
A student can choose multiple courses. A course can also have multiple students.
A brand corresponds to multiple sales details, so the relationship between the table Store Sales Statistics and the table Brand Dimension is N:1.
Setting Other Tables
You can establish model relationship for other tables with the same method.
Since extract dataset cannot establish model relationship with direct dataset,you need to establish model relationship within extract tables or within direct tables.
Method One: Right-click the connection corresponding to the model relationship to be deleted.
Method Two: Select the model relationship to be deleted and delete it in the editing area on the right.
After establishing model relationship, you can drag the fields of these two tables into the component for analysis.
You can also use fields from these two tables to create a new calculation field. For details, see Overview of To-Be-Analyzed Area Settings.
When you select a table in the model view, the corresponding data information will appear on the right side.
Click > Edit data to directly go to the editing interface.
Problem
If N:N model association is created between two tables in the model view, as shown in the following figure.
An error message "Fields with N:N association cannot be used in the detail table." will appear when the fields of these two tables are called at the same time in a Detail Table component, as shown in the following figure.
Solution:
Do not call cross-table fields with N:N model association in a Detail Table component.
滑鼠選中內容,快速回饋問題
滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。
不再提示
10s後關閉
Submitted successfully
Network busy