Type: Formatter
Function: YEAR_WEEK
Syntax: YEAR_WEEK(datetime)
Description: Format a timestamp field in YYYY-WXX
format (e.g. “2023-W17”). This formatter is used to group records in “year + week of the year” blocks.
Sample usage:
YEAR_WEEK("2020-04-17")
returns2020-W16
YEAR_WEEK(created_at)
returns thecreated_at
field value inYYYY-WXX
format