Category items in formulas

You can use your model's categories in formulas. Just start typing the category name and it will appear in the autocomplete list:
You can access the number of category items by clicking on the three dots and selecting Size:
You can also use categories in if-statements:
Use this to dynamically define a variable's categorical values without requiring a formula for each category item.