sisense.com
✅ You are viewing documentation for the latest version of Compose SDK.
Version:

Function thisYear

thisYear(dimension, config?): Filter

Creates a filter to isolate items with a date dimension value in the current calendar year.

Parameters

ParameterTypeDescription
dimensionDateDimensionDate dimension to filter
config?BaseFilterConfigOptional configuration for the filter

Returns

Filter

A filter instance

Example

Filter for items where the date is in the current calendar year in the Sample ECommerce data model.

filterFactory.thisYear(DM.Commerce.Date)
Last Updated: