反馈已提交

网络繁忙

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

APPROX_COUNTD_AGG

  • Recent Updates: May 12, 2022
  • 1. Overview

    When the calculation data is very large, the traditional accurate deduplication count may not be calculated, and the approximate deduplication count can be used to quickly calculate the result.

    GrammarAPPROX_COUNTD_AGG(array)According to the current analysis dimension, the approximate deduplication count of a field is dynamically returned, and the generated result is a dynamic data column with the number of rows 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

    • Only supports use in real-time data.

    • This function only supports the following database systems: CLICKHOUSE, ORACLE (12c r1, 12.1.0.2 and above), SQLSERVER (2019 and above), PRESTO, REDSHIFT, VERTICA. When the database system is REDSHIFT, due to the limitation of REDSHIFT, only aggregation operations that need to be sorted (such as deduplication count, median, percentile, approximate deduplication count) can be performed on the same field at the same time. And this aggregation operation on 2 or more fields at the same time will cause errors. When the database system is VERTICA, due to the limitation of VERTICA, only one of (precise) deduplication counting or approximate deduplication counting can be used at the same time.

    • 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 calculation indicator APPROX_COUNTD_AGG() on the vertical axis is the approximate deduplication number of daily sales.

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

    For example, calculate the approximate daily deduplication count for "ORDERID", as shown in the following figure:

    46.png

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