This table shows sales transactions with SalesID, CustomerID, and Amount.
| Cell | Value |
|---|---|
| A1 | SalesID |
| A2 | 101 |
| A3 | 102 |
| A4 | 103 |
| A5 | 104 |
| A6 | 105 |
| B1 | CustomerID |
| B2 | C001 |
| B3 | C002 |
| B4 | C001 |
| B5 | C003 |
| B6 | C002 |
| C1 | Amount |
| C2 | 250 |
| C3 | 450 |
| C4 | 300 |
| C5 | 150 |
| C6 | 500 |
This table shows sales transactions with SalesID, CustomerID, and Amount.
| Cell | Value |
|---|---|
| A1 | SalesID |
| A2 | 101 |
| A3 | 102 |
| A4 | 103 |
| A5 | 104 |
| A6 | 105 |
| B1 | CustomerID |
| B2 | C001 |
| B3 | C002 |
| B4 | C001 |
| B5 | C003 |
| B6 | C002 |
| C1 | Amount |
| C2 | 250 |
| C3 | 450 |
| C4 | 300 |
| C5 | 150 |
| C6 | 500 |
COUNT(Sales[CustomerID]) and DISTINCTCOUNT(Sales[CustomerID])A B C 1 SalesID CustomerID Amount 2 101 C001 250 3 102 C002 450 4 103 C001 300 5 104 C003 150 6 105 C002 500 Arrows: COUNT and DISTINCTCOUNT use column B (CustomerID) values from rows 2 to 6.
A B C D E 1 SalesID CustomerID Amount COUNT_CustID DISTINCTCOUNT_CustID 2 101 C001 250 5 3 3 102 C002 450 4 103 C001 300 5 104 C003 150 6 105 C002 500
What does the DISTINCTCOUNT function do in Power BI?
Which of the following is the correct syntax to count all non-empty values in the Sales[OrderID] column?
?Given the table Products with the Category column containing values: {"Fruit", "Fruit", "Vegetable", "Fruit", "Vegetable", "Grain"}, what is the result of DISTINCTCOUNT(Products[Category])?
Consider this DAX measure:UniqueCustomers = COUNT(Customer[CustomerID])
Why might this measure give an incorrect count of unique customers?
You have a sales table with 1000 rows. The CustomerID column has 900 non-empty values, but only 850 unique customers. Which DAX measure correctly returns the number of unique customers who made a purchase?
Pass the test and this pattern moves unknown