Hello guys, I need your help.
I've a column of datetime in Sharepoint list. I want to use this column to create dropdown of a year in the list.
This is what i want.

What I think is I need to create a collection from Sharepoint list with datetime column and convert this column in to year (use Year function) then use Distinct function to filter out the duplicate.
My collection name yearyear and the column name is DateofOccurence.

The problem is Year function is not enable to convert table.

Please help me to convert my datetime column in the collection to year column.
Or any advise to complete this is very helpful.
Thanks.