You are viewing 5.1 help doc. More details are displayed in the latest help doc.

The selection of calculation type

  • Recent Updates: April 25, 2022
  • 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.

    Attachment List


    Theme: Advanced Data Analyis
    Already the First
    Already the Last
    • Helpful
    • Not helpful
    • Only read

    售前咨询电话

    400-811-8890转1

    在线技术支持

    在线QQ:800049425

    热线电话:400-811-8890转2

    总裁办24H投诉

    热线电话:173-1278-1526

    文 档反 馈

    鼠标选中内容,快速反馈问题

    鼠标选中存在疑惑的内容,即可快速反馈问题,我们将会跟进处理。

    不再提示

    10s后关闭

    反馈已提交

    网络繁忙