Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex DataLens
    • Overview
    • Formula syntax
      • All Functions
        • Overview
        • AND
        • Addition and concatenation (+)
        • BETWEEN
        • Comparison
        • Division (/)
        • IN
        • IS FALSE
        • IS TRUE
        • LIKE
        • Modulo (%)
        • Multiplication (*)
        • NOT
        • Negation (-)
        • OR
        • Power (^)
        • Subtraction (-)
      • Function Availability
    • Parameters
  • Audit Trails events
  1. Calculated fields
  2. Function reference
  3. Operators
  4. Addition and concatenation (+)

Addition and concatenation (+)

Written by
Yandex Cloud
Improved by
amatol
Updated at November 6, 2024

SyntaxSyntax

value_1 + value_2

DescriptionDescription

Warning

Yandex Metrica does not support string concatenation.

Behaves differently depending on the argument types. Possible options are listed in the table:

Type of value_1 Type of value_2 Return value
Fractional number | Integer Fractional number | Integer The sum of the numbers value_1 and value_2.
Date Fractional number | Integer The date that is value_2 days greater than value_1 (rounded down to an integer number of days).
Datetime Fractional number | Integer The date with time, value_2 days greater than value_1. If value_2 contains a fractional part, it is converted hours (1/24), minutes (1/1440), and seconds (1/86400).
String String The merging (concatenation) of strings value_1 and value_2.
Array of fractional numbers | Array of integers | Array of strings Array of fractional numbers | Array of integers | Array of strings The merging (concatenation) of arrays value_1 and value_2.

Changing the order of arguments does not affect the result.

Argument types:

  • value_1 — Array of fractional numbers | Array of integers | Array of strings | Date | Datetime | Fractional number | Integer | Markup | String
  • value_2 — Array of fractional numbers | Array of integers | Array of strings | Date | Datetime | Fractional number | Integer | Markup | String

Return type: Depends on argument types

ExamplesExamples

2 + 3 = 5
"Lorem" + " ipsum" = "Lorem ipsum"
#2019-01-06# + 2 = #2019-01-08#
2.2 + #2019-01-06# = #2019-01-08#
2 + #2019-01-06 03# = #2019-01-08 03:00:00#
#2019-01-06 03# + 2.5 = #2019-01-08 15:00:00#

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, Yandex Documents, YDB.

Was the article helpful?

Previous
AND
Next
BETWEEN
© 2025 Direct Cursus Technology L.L.C.