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
EasyWrite Big Lines: how many order lines have 3 items or more. It is checked for each store.
Try it yourself
Big Lines =| Store | Big Lines |
|---|---|
| Lisbon Riverside | |
| Porto Ribeira | |
| Madrid Centro | |
| Barcelona Gracia | |
| Berlin Mitte | |
| Total |
- Sales
- Revenue
- Total Units
- Customers
- Products
- Stores
- StoreID
- Store
- City
- Country
- OpenDate
- Customers
- Dates
- Targets
All lessons in DAX with CALCULATE
3Row by Row in a Measure
SUMX Works Row by RowAVERAGEX and MAXXFILTER Picks RowsMeasures Inside IteratorsRanking with RANKXRecap - Profit Without Columns