Check out @Daravae 's unofficial guide on setting up leaderboards. In short, you need to create variables and then select the option to use them as sub-categories.