Getting Started with a Simple Example

  • Last update:June 12, 2024
  • Overview

    The subject model helps simplify multi-table analysis in FineBI to improve analysis efficiency.

    To truly master the use of the subject model, you need to understand the principles of the subject model and how it connects multiple tables.

    Example

    In multi-table analysis, Join easily introduces redundant data, resulting in duplicate rows in the resulting table.

    For example, Target Table records the target sales data for each region, and Sales Detail Table records the specific sales data.

    To determine whether the sales in each region have reached the target value, you need to perform a multi-table analysis on these two tables.

    The following two sections show the differences between Join and the subject model in multi-table analysis.

    Effect of Join

    You can download the sample data Target Table and Sales Detail Table.xlsx.

    Create an analysis subject. Perform Join on Sales Detail Table and merge Target Sales into Sales Detail Table, as shown in the following figure.

    This will cause the Target Sales field data to inflate and duplicate. For example, the Target Sales data of New York and Michigan are inflated from one record to two records.

    When checking whether the regional sales volume lives up to the target sales in the component, you can find that the data duplication caused by Join results in calculation errors during the summary, leading to incorrect target sales of New York and Michigan.

    In this case, how to avoid data inflation and obtain the correct result?

    Effect of the Subject Model

    Similarly, you can try with the subject model.

    Create an analysis subject and add data. Establish a model association between Target Table and Sales Detail Table, as shown in the following figure.

    When comparing Sales Volume and Target Sales of Region in the component, the obtained values are correct without duplicate data issues.

    You may wonder why Join produces redundant data, but the subject model does not. You can get the answer in the document Subject Model Merging Principle.

    Subject Model Merging Principle

    For details, see the next document Subject Model Merging Principle.


    附件列表


    主题: 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