# Function thisYear

thisYear(dimension): 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

# 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)