Why is the year name displayed in decimals?

Why is the year name displayed in decimals?

The data type of the measure - 'year_name' must be defined as 'number'. You can alter the data type to string