Menu
CoddyTech

Removing One Filter

Part of the DAX with CALCULATE section of Coddy's Power BI journey. Lesson 8 of 24.

REMOVEFILTERS(Table[Column]) removes the filter on one column; the rest stay.

Share in Country = DIVIDE([Revenue], CALCULATE([Revenue], REMOVEFILTERS(Products[Category])))

In a category by country matrix, each cell is a share of its country. Each column adds up to 100%.

REMOVEFILTERS(Table) works like ALL(Table) inside CALCULATE.

challenge icon

Challenge

Medium

What does each country buy? Write Share in Country: a category's Revenue as a share of its country's revenue. It is checked in a matrix of category by country.

Try it yourself

Share in Country =
CategoryShare in Country
Coffee
Tea
Bakery
Merch
Total
Fields
  • Sales
    • Revenue
    • Total Units
    • Customers
  • Products
    • ProductID
    • Product
    • Category
    • UnitPrice
    • UnitCost
  • Stores
    • StoreID
    • Store
    • City
    • Country
    • OpenDate
  • Customers
  • Dates
  • Targets

All lessons in DAX with CALCULATE