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
© 2026 Direct Cursus Technology L.L.C.
Yandex DataLens
  • DataLens neuroanalyst
    • Overview
    • Formula syntax
    • Neuroanalyst for creating calculated fields
      • All Functions
        • Overview
        • AGO
        • AT_DATE
      • Function Availability
    • Parameters
  • DataLens Gallery
  • Audit Trails events
  1. Calculated fields
  2. Function reference
  3. Time series functions
  4. AT_DATE

AT_DATE

Written by
Yandex Cloud
Updated at December 19, 2025

SyntaxSyntax

Standard
Extended
AT_DATE( measure, date_dimension, date_expr )
AT_DATE( measure, date_dimension, date_expr
         [ BEFORE FILTER BY ... ]
         [ IGNORE DIMENSIONS ... ]
       )

More info:

  • BEFORE FILTER BY
  • IGNORE DIMENSIONS

DescriptionDescription

Re-evaluate measure for a date/time specified by date_expr. It allows to get the measure at the beginning and at the end of a period, or for the specified date.
The date_dimension argument is the dimension along which the offset is made.

You can use the following as the date_expr argument:

  • Certain date.
  • Function TODAY to obtain the current date.
  • Functions to calculate date and time.

See also AGO, LAG.

Argument types:

  • measure — Any
  • date_dimension — Date | Datetime
  • date_expr — Date | Datetime

Return type: Same type as (measure)

Note

The first argument must be a measure (aggregated expression), otherwise an error will be raised.

ExamplesExamples

AT_DATE(SUM([Sales]), [Order Date], #2019-01-01#)
AT_DATE(SUM([Sales]), [Order Date], TODAY())
AT_DATE(SUM([Sales]), [Order Date], DATETRUNC([Order Date], "month"))

Data source supportData source support

ClickHouse 21.8, Files, Google Sheets, Yandex Metrica, Microsoft SQL Server 2017 (14.0), MySQL 5.7, Oracle Database 12c (12.1), PostgreSQL 9.3, Trino, Yandex Documents, YDB.

Was the article helpful?

Previous
AGO
Next
Overview
© 2026 Direct Cursus Technology L.L.C.