You can do this by creating a variable and use replacement path. Under the characteristic dropdown, select Posting Period. Go to replacement path tab.
set offset as
starting postion - 0
length - 4
this variable will now contain only the year part of the dimension.