反馈已提交

网络繁忙

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

COUNT_AGG

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

    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后关闭