Some examples:
How many days are left in this year? How many days are left this year?
In this year, Tommy has grown 12 inches. This year, Tommy has grown 12 inches
In this year is a prepositional phrase with this year as the object. This year by itself is a noun phrase.
Both can be used to place an event within the current year, but this year is much more natural