Menu
CoddyTech

FILTER Picks Rows

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

FILTER(Table, test) returns the rows that pass the test.

Big Lines = COUNTROWS(FILTER(Sales, Sales[Quantity] >= 3))

It walks only the rows of the bar.

In CALCULATE, its rows become the rows the measure runs on.

CALCULATE([Revenue], FILTER(Sales, Sales[Amount] >= 10))
challenge icon

Challenge

Easy

Write Big Lines: how many order lines have 3 items or more. It is checked for each store.

Try it yourself

Big Lines =
StoreBig Lines
Lisbon Riverside
Porto Ribeira
Madrid Centro
Barcelona Gracia
Berlin Mitte
Total
Fields
  • Sales
    • Revenue
    • Total Units
    • Customers
  • Products
  • Stores
    • StoreID
    • Store
    • City
    • Country
    • OpenDate
  • Customers
  • Dates
  • Targets

All lessons in DAX with CALCULATE