Percent of total with ALL

Divide each category by the grand total — ALL removes a filter so you can compare a part to the whole.

You will learn to

  • Remove filters with ALL
  • Calculate a grand total inside a filtered row
  • Build a percent-of-total measure

How it works

To compare a part to the whole you need two numbers in the same row: the part (what the row shows) and the whole (ignoring the row’s filter).

`ALL(Product)` used inside `CALCULATE` removes every filter on the Product table. So `CALCULATE([Total Sales], ALL(Product))` is total sales for all products, even in the Bikes row.

Divide the part by the whole with `DIVIDE`, and format it as a percentage.

Practice it hands-on with a real data model and a live report that updates as you type.

All Regions = CALCULATE([Total Sales], ALL(Customer))