Menu
CoddyTech

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 icon

Challenge

Beginner

How many order lines does each category have? Write a measure Order Lines that counts the rows of Sales.

Try it yourself

Order Lines =
CategoryOrder Lines
Coffee
Tea
Bakery
Merch
Total
Fields
  • Sales
  • Products
    • ProductID
    • Product
    • Category
    • UnitPrice
    • UnitCost
  • Stores
  • Customers
  • Dates
  • Targets

All lessons in Power BI Basics