Calculating percentages based on items in category

I’m assuming you are referring to this, which looks like you already solved your problem?