COUNTD_AGG - Distinct Count

  • Last update:January 06, 2025
  • Overview

    COUNT_AGG function is used to perform distinct count (not empty) for the specified dimension (dragged into the analysis area). The calculation field will make dynamic adjustment automatically when you switch the analysis dimension.

    Syntax

    COUNTD_AGG(Array)

    Based on the current analysis dimension, this function returns the distinct count of the field. The generated results are listed in a data column. The number of rows in the data column is consistent with that in the current analysis dimension.

    Parameter

    Array

    The Array parameter 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.

    Notes

    The function supports one parameter of any type for real-time data.

    Example

    If the dimension field in the horizontal axis is Day, the value returned by the calculation field COUNTD_AGG(Sales Volume) is the distinct count of sales for each day.

    If the dimension field in the horizontal axis is Month, the value returned by the calculation field COUNTD_AGG(Sales Volume) is the distinct count of sales for each month.

    For example, if you want to count the number of customers of different contract by Contract Information, there are two implementation methods.

    Method One

    Create the calculation field Number of Clients with the COUNTD_AGG function. Enter COUNTD_AGG(Client ID), as shown in the following figure.

    image 11.png

    Drag the indicator into the analysis area, as shown in the following figure.

     image 12.png

    Method Two

    Select Convert to Indicator to convert Customer ID from a dimension to an indicator, as shown in the following figure.

    image 13.png

    附件列表


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