Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex DataLens
  • DataLens neuroanalyst
    • Overview
    • Formula syntax
    • Neuroanalyst for creating calculated fields
      • All Functions
        • Overview
        • DB_CALL_AGG_FLOAT
        • DB_CALL_AGG_INT
        • DB_CALL_AGG_STRING
        • DB_CALL_ARRAY_FLOAT
        • DB_CALL_ARRAY_INT
        • DB_CALL_ARRAY_STRING
        • DB_CALL_BOOL
        • DB_CALL_FLOAT
        • DB_CALL_INT
        • DB_CALL_STRING
      • Function Availability
    • Parameters
  • DataLens Gallery
  • Audit Trails events
  1. Calculated fields
  2. Function reference
  3. Native functions
  4. DB_CALL_AGG_FLOAT

DB_CALL_AGG_FLOAT

Written by
Yandex Cloud
Updated at December 19, 2025

SyntaxSyntax

Standard
Extended
DB_CALL_AGG_FLOAT( db_agg_function_name [ , arg_1 [ , arg_2 [ , ... ] ] ] )
DB_CALL_AGG_FLOAT( db_agg_function_name [ , arg_1 [ , arg_2 [ , ... ] ] ]
                   [ FIXED ... | INCLUDE ... | EXCLUDE ... ]
                   [ BEFORE FILTER BY ... ]
                 )

More info:

  • FIXED, INCLUDE, EXCLUDE
  • BEFORE FILTER BY

DescriptionDescription

Warning

The availability and behavior of native functions depends on your database type and version.

It is recommended to use native functions only if there is no supported DataLens function (composition of functions) that can achieve the required result.

Calls a native database aggregate function by its name. Native function should return a value of type Fractional number. The function is executed as an aggregation across grouped rows.

The first argument db_agg_function_name must be a constant string with the name of the database function to call. All subsequent arguments are passed to the native function in the same order as written in the formula and can be of any type, including types that are not currently supported by DataLens.

The function name must contain only alphanumeric characters, underscore and colon characters.

Argument types:

  • db_agg_function_name — String
  • arg_1 — Any
  • arg_2 — Any

Return type: Fractional number

Note

Only constant values are accepted for the arguments (db_agg_function_name).

ExamplesExamples

DB_CALL_AGG_FLOAT("avgWeighted", [amount], [weight_field]) -- ClickHouse: calculate weighted average of amount by weight
DB_CALL_AGG_FLOAT("corr", [x], [y]) -- ClickHouse: calculate correlation coefficient between x and y

Data source supportData source support

ClickHouse 21.8, Microsoft SQL Server 2017 (14.0), MySQL 5.7, Oracle Database 12c (12.1), PostgreSQL 9.3, Trino, YDB.

Was the article helpful?

Previous
Overview
Next
DB_CALL_AGG_INT
© 2025 Direct Cursus Technology L.L.C.