Counting Rows
Part of the Power BI Basics section of Coddy's Power BI journey. Lesson 8 of 28.
COUNTROWS counts the rows of a table: COUNTROWS(Sales).
A row of Sales is an order line, so it counts order lines, only the ones the visual lets through.
It takes a table, any table: COUNTROWS(Products) counts products.
Challenge
BeginnerHow many order lines does each category have? Write a measure Order Lines that counts the rows of Sales.
Try it yourself
Order Lines =| Category | Order Lines |
|---|---|
| Coffee | |
| Tea | |
| Bakery | |
| Merch | |
| Total |
- Sales
- Products
- ProductID
- Product
- Category
- UnitPrice
- UnitCost
- Stores
- Customers
- Dates
- Targets