COUNT_AGG

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

    COUNT_ AGG() counts the data of the specified dimension (the number of non empty cells). With the switching of the user's analysis dimension, the calculation field will automatically adjust dynamically with the dimension.

    GrammarCOUNT_AGG(array)According to the current analysis dimension, return the count of a certain field, and the generated result is a data column. And the number of rows is consistent with the number of rows in the current analysis dimension.
    Parameterarray

    It must be the result returned by a non-aggregate function formula, which can be a calculation result of an indicator field, dimension, or indicator field and a common formula.

    2. Matters needing attention

    Real-time data supports the use of a parameter of any type.

    3. Example

    When the user's horizontal axis is the dimension field "Day", the value returned by the calculated field COUNT_AGG (Sales) on the vertical axis is the number of daily sales.

    When the user horizontal axis is the dimension field "Month", the value returned by COUNT_AGG (Sales) is the number of monthly sales.

    For example, if you want to use the built-in dataset "Contract fact sheet" to calculate the number of contract signings per year, you need to first drag the "Contract signing time" into the horizontal axis and set the grouping method to "Year", as shown in the following figure:

    36.png

    Create a calculation indicator, name it "Contract quantity", enter the formula: COUNT_AGG (contract ID), click "OK", as shown in the following figure:

    37.png

    You can get the result, as shown in the figure below:38.png

    Of course, directly dragging the Counter into the analysis bar has the same effect, as shown in the following figure:

    39.png

    4. More use

    COUNT_ AGG is often nested with other functions for conditional counting.

    附件列表


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