COUNTD_AGG

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

    COUNTD_ AGG() performs deduplication count on the data of the specified dimension (the number of non empty cells). With the switching of user analysis dimension, the calculation field will automatically adjust dynamically with the dimension.

    GrammarCOUNTD_AGG(array)According to the current analysis dimension, return the deduplication count of a certain field, and the generated result is a data column with the number of rows consistent with 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. Examples

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

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

    For example, you use the built-in dataset "User retention data" and want to count the number of users in different regions. In this case, different phone numbers are used to represent different users. There are two implementation schemes.

    3.1 Method one

    Use the COUNTD_AGG function to create the calculation indicator "Number of users", and enter the formula: COUNTD_AGG (contact number), as shown in the figure below:

    40.png

    Drag the data into the analysis bar, as shown in the figure below:

    41.png

    3.2 Method two

    Use dimension conversion indicators to convert "contact number" into indicator, as shown in the figure below:

    1649226376970606.png

    4. More use

    COUNTD_ AGG is more often nested with other functions for conditional counting.

    附件列表


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