However, the columns you want to use for color coding may not appear in the formatting screen. This is because the column you want to use for color coding is not included in the calendar view.
So, the following is a method to change the view settings and increase the columns available for use in the calendar view formatting.
Microsoft Lists: How to increase the columns available for calendar view formatting