Show/Hide events on calendar view

Show/Hide events on calendar view

Hi, 

I have a create_event form and it has 5 different types_of_events. How can I code such that the report can show or hide events pertaining to the type_of_event selected as a custom function? 

Thanks!