Remove just one filter with REMOVEFILTERS
Work out each region’s share of sales while keeping every other filter, by clearing only the Region column.
You will learn to
- Clear the filter on a single column with REMOVEFILTERS
- Explain the difference between clearing a column and clearing a table
- Build a share that respects slicers
How it works
`REMOVEFILTERS` works like `ALL` inside CALCULATE: it clears filters. Give it a **table** and every filter on that table goes; give it a **column** and only that column’s filter goes.
That difference matters for shares. `REMOVEFILTERS(Customer)` also throws away a Segment slicer, because Segment lives in the Customer table. `REMOVEFILTERS(Customer[Region])` clears the region and nothing else, so with Segment set to Business you get each region’s share of **business** sales.
Clear the narrowest thing that gives you “the whole” you want to compare against.
Practice it hands-on with a real data model and a live report that updates as you type.
Color Share = DIVIDE([Total Sales], CALCULATE([Total Sales], REMOVEFILTERS(Product[Color])))