Selecting Calculation Type

  • Last update:  2022-04-25
  • 1. Overview

    This article describes the types of calculation that can be used in FineBI.

    You can use the following four main types of calculation to create calculated fields in FineBI:

    • Aggregate computing

    • Detail level calculation (row-level of data source calculation)

    • Control function of calculation granularity. Note: Only real-time data is supported.

    • Quick calculation of components

    2. Aggregate calculation

    Sample data: 

    289.Contract facts.xlsx

    Aggregate functions can summarize a set of data, and we generally use the aggregated values of the aggregate function for recalculation. For details, please refer to: Aggregate functions .

    For example, you want to process the following contract data:

    1.png

    To create a column to show how many "Contract ID" are in each "Contract type", we can use the formula: COUNT_AGG (Contract ID). As shown below:

    2.png

    The detailed results obtained are shown in the following figure:

    Note: The color help to show the level of detail at which the calculation is performed.

    3.png

    The display mode in the dashboard is shown in the figure below:

    4.png

    3.Detail level calculation

    Row-level calculation of data source can be implemented in " Add Column" in Self-service dataset and "Add Calculation Field" in Dashboard Component Editing Interface.

    For details of the function, please refer to: Function calculation format.

    3.1 Dashboard calculation

    It is not recommended to use the dashboard to calculate detailed data.

    Applicable type: For example, each order contains the data of the total price and the unit price, and the total purchase quantity needs to be calculated. Then we can directly use Contract amount/Purchase quantity. When summarizing, add the purchase quantity corresponding to each order to get the total purchase quantity.

    Use "Contract facts" table, add a calculation field "Calculation of detail level to average", and directly use the formula Contract amount / Purchase quantity. As shown below:

    5.png

    The result is shown in the figure below. The calculation is performed at the row-level of the data source, so each row is individually colored:

    6.png

    Obviously, the result obtained is to divide the detailed data.

    3.2 Calculation of self-service dataset

    For details, please refer to: Add new column.

    4. Control the function of calculation granularity (FIXED class)

     According to the switch of the analysis "dimension" of users, the calculation result of aggregation function will dynamically adjust following the "dimension" automatically.

    But when the analysis area needs to have multiple dimensions, and at the same time it is necessary to calculate the aggregate data based on a certain dimension as the grouping basis, a fixed-granularity calculation function needs to be used.

    Include , Exclude , and Fixed functions can better control the level of granularity to be calculated. These functions can be executed at a higher granularity level (include), a lower granularity level (exclude)  or a completely independent level (fixed).

    For example, if you want to calculate the summary contract amount under different types of contract payment, the color help to show the detailed level of the application calculation, as shown in the following figure:

    7.png

    Enter the formula:

    8.png

    For details, please refer to: [Real-time data] Control calculation granularity function

    5. Quick calculation of component

    Quick calculation of component only allows calculation or conversion of existing data after creating a chart/table.

    For details, please refer to: table quick calculation , chart quick calculation , table summary method , chart summary method.

    附件列表


    主题: Advanced Data Analyis
    Previous
    Next
    • 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