What does the COUNT function do in Power BI?
The COUNT function counts the number of non-empty values in a column.
What is the difference between COUNT and DISTINCTCOUNT?
COUNT counts all non-empty values, including duplicates.<br>DISTINCTCOUNT counts only unique non-empty values.
Write a simple DAX formula to count all sales transactions in a table named Sales using COUNT.
Total Sales = COUNT(Sales[TransactionID])<br>This counts all non-empty TransactionID values.
How would you count the number of unique customers in the Sales table?
Use DISTINCTCOUNT on the CustomerID column:<br>Unique Customers = DISTINCTCOUNT(Sales[CustomerID])
Why is it important to use DISTINCTCOUNT when counting unique items?
Because it avoids counting duplicates, giving the true number of unique items, like unique customers or products.
What does COUNT(Sales[OrderID]) return?
COUNT counts all non-empty values, including duplicates.
Which function counts only unique values in a column?
DISTINCTCOUNT counts only unique non-empty values.
If a column has 10 values with 3 duplicates, what will DISTINCTCOUNT return?
DISTINCTCOUNT counts unique values, so duplicates are counted once.
Which DAX formula counts all rows where the column is not empty?
COUNT counts non-empty values in a column.
What will COUNT do with empty or blank values?
COUNT ignores empty or blank values.
Explain in your own words the difference between COUNT and DISTINCTCOUNT in Power BI.
Describe a real-life example where you would use DISTINCTCOUNT instead of COUNT.