0
0
Power BIbi_tool~8 mins

COUNTROWS in Power BI - Dashboard Guide

Choose your learning style9 modes available
Dashboard Mode - COUNTROWS
Dashboard Goal

How many sales transactions happened in total and by each product category?

Sample Data
TransactionIDProductCategorySalesAmount
1Electronics200
2Clothing150
3Electronics300
4Clothing100
5Home250
6Electronics400
Dashboard Components
  • Total Transactions (KPI Card): Shows total number of sales transactions.
    Total Transactions = COUNTROWS(Sales)
    Result: 6
  • Transactions by Category (Bar Chart): Shows count of transactions per product category.
    Transactions by Category = COUNTROWS(Sales) used with category axis.
    Results:
    • Electronics: 3
    • Clothing: 2
    • Home: 1
  • Sales Data Table: Displays raw sales data for reference.
Dashboard Layout
+-----------------------+-----------------------+
| Total Transactions KPI | Transactions by Cat   |
|        (CountRows)     |      (Bar Chart)      |
+-----------------------+-----------------------+
|                   Sales Data Table               |
+-------------------------------------------------+
Interactivity

Clicking a product category bar filters the Sales Data Table and updates the Total Transactions KPI to show only transactions in that category.

Self Check

If you add a filter for ProductCategory = Electronics, what is the updated Total Transactions count?

Answer: 3 transactions.

Key Result
Dashboard shows total sales transactions and counts by product category using COUNTROWS.