Percent of parent: each product’s share of its category
In a matrix by Product, divide each product by its own category’s total, using ALL to clear the product and VALUES to put its category back.
You will learn to
- Rebuild a parent total from the row’s own filter
- Use VALUES as a CALCULATE filter
- Explain why ALLEXCEPT only keeps filters that are already there
How it works
In a matrix by Product, the row for Road-150 filters only `Product[Product]`. Nothing filters Category directly, even though Road-150 is a bike.
So the parent total takes two steps inside CALCULATE: `ALL(Product)` clears the product filter, and `VALUES(Product[Category])` puts back the categories that were visible in the row (for Road-150, just Bikes). CALCULATE reads `VALUES` **before** any filter changes, so it still sees the row’s product.
You may know `ALLEXCEPT(Product, Product[Category])`. It keeps a Category filter only if there is one, so in a matrix by Product alone it gives the grand total. It works when Category is also on the rows or in a slicer.
Practice it hands-on with a real data model and a live report that updates as you type.
Share of Region = DIVIDE([Total Sales], CALCULATE([Total Sales], ALL(Customer), VALUES(Customer[Region])))