You are viewing FineBI 7.X help doc. You can click to jump to FineBI 6.X help doc.

Model View Overview and Construction Method

  • Last update:November 11, 2026
  • Overview

    Version

    FineBI Version
    Functional Change

    7.0

    /

    Application Scenario

    Within the subject model, you can configure model associations for tables in the subject. Configuring the subject model facilitates multi-table analysis.

    Subject model configuration can facilitate multi-table analysis.

    Function Description

    On the Data tab page, you can click the icon to go to the subject model setting page and set table associations via drag-and-drop.

    1.png

    Notes

    Establishment restrictions for model associations:

    • Model associations cannot be created between direct-connected datasets and extracted datasets.

    • Model associations cannot be created between direct-connected datasets from different data connections.

    • A model association can be established between a direct-connected dataset and a direct-connected Excel dataset only if the direct-connected dataset is from a directly connected database supporting integrated analysis with Excel. Otherwise, it cannot be established.

    Example

    Create an analysis subject and add the required data to it, as shown in the following figure.

    In this subject, both extracted data and real-time data are added.

    2.png

    Click the icon, as shown in the following figure.

    Extracted tables are displayed in blue, while direct-connected tables are displayed in purple.

    3.png

    Establishing a Model Association

    Drag a table onto the target table for subject association configuration to create a connection line and establish the model relationship.

    For example, both the Brand Dimension table and Supermarket Sales Data table contain the Brand ID field. A model association can be established between these two tables.

    4.png

    Generating the Model Association

    Drag the Brand Dimension table onto the Supermarket Sales Data table to generate an association, as shown in the following figure.

    5.gif

    Editing the Model Association

    1. After you have established the connection, the Edit Association page will automatically pop up. You can modify the matching fields and model association, as shown in the following figure.

    6.png

    Matching field:

    • It is the link between two tables that are associated. If both tables have the field Brand ID, this field is the link that establishes the connection.

    • The type of the matching fields in the two tables needs to be the same.

    Model association:

    The system will select the most suitable model association based on your data. To avoid performance impacts, you are advised to select the correct model associations.

    Model AssociationExample

    1:1 (one-to-one)

    This can be understood as the relationship between a citizen and their ID number: One citizen corresponds to only one ID number.

    1:N (one-to-many)

    This can be understood as the relationship between states and cities: One state has N cities.

    N:1 (many-to-one)

    Multiple cities belong to one state.

    N:N (many-to-many)

    A student may select multiple courses, and a course can be taken by many students.

    One brand corresponds to multiple sales detail records, so the relationship from Supermarket Sales Data to Brand Dimension is N:1.

    Configuring Other Tables

    You can establish model associations for other tables with the same method.

    Since extracted datasets cannot be used to establish model associations with direct-connected datasets, you need to establish model associations within extracted tables or within direct-connected tables.

    Deleting a Model Association

    Method one: Right-click the connection line corresponding to the model association to be deleted.

    7.png

    Method two: Select the model association to be deleted and delete it in the editing area on the right.

    8.png

    Selecting Fields from Multiple Tables After Establishing a Model Association

    The model relationship between Brand Dimension and Supermarket Sales Data has been established above.

    After establishing the model association, you can drag fields from these two tables into the same component for data analysis.

    9.png

    You can also use fields from the tables to create a calculation field. For details, see Overview of the Settings of To-Be-Analyzed Area.

    Viewing the Table Information

    When you select a table in the model view, the corresponding data information will appear on the right.

    Click the drop-down icon and then click Edit Data to go directly to the editing page, as shown in the following figure.

    10.png

    Notes

    Restriction on Fields from Two Tables with an N:N Association for Detail Tables

    Problem:

    Sometimes, an N:N model association is created between two tables in the model view, as shown in the following figure.

    11.png

    In this case, 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, as shown in the following figure.

    12.png

    Solution:

    Do not call cross-table fields with an N:N model association in a detail table.

    附件列表


    主题: Adding and Editing Data
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy