Extract the data for each event by category