Let's look at how these three DAX functions work using a simple example with Product and Total Units Sold.

Below is the table when no filters are applied:

Screenshot 2025-12-10 104057

Below is the table when filters are applied:

Screenshot 2025-12-10 104116

ALL

Example:

AllSales = CALCULATE(SUM(Orders[Units Sold]), ALL(Orders[Product]))

This gives total sales for all products, no matter what filters are applied (as shown in the second image).

ALLSELECTED

Example:

AllSelected = CALCULATE(SUM(Orders[Units Sold]), ALLSELECTED(Orders[Product]))

If you select a few products in a slicer, it uses only those selections but ignores row-level filters in the visual. In other words, it shows the total sales for all the selected products (as shown in the second image).

ALLEXCEPT

Example:

AllExcept = CALCULATE(SUM(Orders[Units Sold]), ALLEXCEPT(Orders,Orders[Product]))

This calculates total sales per product, ignoring filters on other columns like customer ID or region.

📌 Quick Comparison Table

FunctionRemoves FiltersKeeps FiltersTypical Use Case
ALLAllNoneTotal values, ignoring slicers
ALLSELECTEDRow contextOuter selectionsPercent of selected items in visuals
ALLEXCEPTAll except specified columnsSpecified columnsTotals per group, ignoring other filters