0
0
Power BIbi_tool~10 mins

ALL function for removing filters in Power BI - Cell-by-Cell Formula Trace

Choose your learning style9 modes available
Sample Data

Sales data for products with their categories and sales amounts.

CellValue
A1Product
B1Category
C1Sales
A2Apple
B2Fruit
C2100
A3Banana
B3Fruit
C3150
A4Carrot
B4Vegetable
C4200
A5Broccoli
B5Vegetable
C5120
Formula Trace
Total Sales All Categories = CALCULATE(SUM(Sales[Sales]), ALL(Sales[Category]))
Step 1: SUM(Sales[Sales])
Step 2: ALL(Sales[Category])
Step 3: CALCULATE(SUM(Sales[Sales]), ALL(Sales[Category]))
Cell Reference Map
    A         B          C
1 Product   Category   Sales
2 Apple     Fruit      100
3 Banana    Fruit      150
4 Carrot    Vegetable  200
5 Broccoli  Vegetable  120

Filters removed on column B (Category)
The formula removes filters on the Category column (B) to sum all sales regardless of category.
Result
    D
1 Total Sales All Categories
2 570
The measure shows total sales 570, summing all products ignoring any category filter.
Sheet Trace Quiz - 3 Questions
Test your understanding
What does the ALL function do in this formula?
ARemoves filters on the Category column
BFilters only Fruit category
CSums sales only for filtered categories
DAdds a new filter on Category
Key Result
ALL removes filters on specified columns to calculate over entire data ignoring those filters.