year()
The year() offset function is appended to a metric dataset and provides the ability to dynamically reference a time period for the metric. Syntax Metric_API_Name.Dataset_API_Name.year(offset value) Argument Description offset value (required) An expression that results in a numeric value (i.e., a hard-coded number, a reference to a numeric attribute, or a…