Troubleshooting of Invalid Formulas

  • Last update:May 14, 2025
  • Overview

    Scenario

    Sometimes, you may enter invalid formulas. This document provides you with some methods of troubleshooting invalid formulas.

    You can view the prompt below the formula editing area to determine whether the formulas entered are valid, as shown in the following figure.

    1.png

    Cause

    The two main causes are as follows:

    1. You may enter incorrect punctuation marks or use the wrong field formats.

    2. You may enter formulas that are not consistent with the function logic of FineBI.

    Syntax Error Due to Marker Missing

    Generally, the error message "Syntax error due to marker missing" is displayed when the operators in formulas are not complete.

    For example, if you enter ABS(Contract Amount)+, the error message "Syntax error due to marker missing" is displayed.

    2.png

    For example, you need to add a column and assign all values in the column as 1. When you enter "1, the error message "Syntax error due to marker missing" is displayed due to the missing of the closing double quote.

    3.png

    Detail Table Not Supporting Aggregation Functions

    Aggregation functions can only be used for calculation fields. For details about the functions of aggregation functions, see Aggregation Function Overview.

    Aggregation functions cannot be used in detail tables. The following figure shows the error message.

    Not Able to Output Aggregation Functions Directly

    Problem: The error message "The aggregation functions cannot be output directly." is displayed when you use aggregation functions.

    Cause: The results returned by aggregation functions are aggregated values. For self-service datasets, you can output only fields at the detail level by adding formula columns.

    Solution:

    1. During component creation, you can use the Add Calculation Field function and enter the corresponding functions for calculation.

    2. You can nest aggregations inside the DEF function and output fields at the detail level. For details, see DEF (Specified Dimension).

    不支持直接输出聚合函数.png

    Aggregation Function Not Able to Be Nested With the Aggregation Function

    You cannot use aggregation functions inside aggregation functions. Otherwise, the formulas will be invalid, as shown in the following figure.

    6.png

    Not Able to Use Aggregation and Non-Aggregation Parameters Together

    For example, you can use the IF function to perform the secondary calculation on the aggregation function. When containing a non-aggregation parameter, the formula is invalid, as shown in the following figure.

    7.png

    In this case, you can change the non-aggregation parameter to an aggregation parameter, as shown in the following figure.

    8.png

    However, aggregation functions can be nested with non-aggregation functions. SUM_AGG(MAX(Field)) is a valid formula, as shown in the following figure.

    9.png

    Indicator with Indicator Conditions Supporting Only Aggregation Functions

    When parameters set with indicator conditions are used in the formulas for outputting calculation fields, only aggregation functions can be used in the formulas.

    For example, you can set indicator conditions for the Contract Amount indicator and add a calculation field, as shown in the following figure.

    Since the IF function, which is not an aggregation function, is used, the error message is displayed, indicating that the formula is invalid.

    10.png

    You can replace the indicator conditions with other filter methods.

    附件列表


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