Dashboard Mode - COUNT and DISTINCTCOUNT
Business Question
How many total sales transactions are there, and how many unique customers made purchases?
How many total sales transactions are there, and how many unique customers made purchases?
| TransactionID | CustomerID | Product | Amount |
|---|---|---|---|
| 1001 | C001 | Notebook | 15 |
| 1002 | C002 | Pen | 5 |
| 1003 | C001 | Backpack | 45 |
| 1004 | C003 | Pen | 5 |
| 1005 | C004 | Notebook | 15 |
| 1006 | C002 | Backpack | 45 |
| 1007 | C005 | Pen | 5 |
Shows the total number of sales transactions.
DAX formula: Total Transactions = COUNT(Sales[TransactionID])
Result: 7
Shows the number of distinct customers who made purchases.
DAX formula: Unique Customers = DISTINCTCOUNT(Sales[CustomerID])
Result: 5
Displays all sales transactions with details.
+----------------------+---------------------+
| Total Transactions | Unique Customers |
| [ 7 ] | [ 5 ] |
+----------------------+---------------------+
| |
| Sales Details Table |
| |
+------------------------------------------+
Adding a slicer to filter by Product will update both KPI cards and the sales details table to show data only for the selected product(s).
For example, selecting "Pen" will update:
If you add a filter for CustomerID = C001, which components update and what are their new values?