✅ 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
Parameter | Type | Description |
---|---|---|
dimension | DateDimension | Date dimension to filter |
config ? | BaseFilterConfig | Optional configuration for the filter |
# Returns
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)