0
0
Power BIbi_tool~5 mins

COUNT and DISTINCTCOUNT in Power BI - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner

What does the COUNT function do in Power BI?

The COUNT function counts the number of non-empty values in a column.

Click to reveal answer
beginner

What is the difference between COUNT and DISTINCTCOUNT?

COUNT counts all non-empty values, including duplicates.<br>DISTINCTCOUNT counts only unique non-empty values.

Click to reveal answer
beginner

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.

Click to reveal answer
beginner

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])

Click to reveal answer
beginner

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.

Click to reveal answer

What does COUNT(Sales[OrderID]) return?

ANumber of empty OrderID values
BNumber of unique OrderID values
CTotal sum of OrderID values
DNumber of non-empty OrderID values

Which function counts only unique values in a column?

ADISTINCTCOUNT
BSUM
CAVERAGE
DCOUNT

If a column has 10 values with 3 duplicates, what will DISTINCTCOUNT return?

A7
B3
C10
D13

Which DAX formula counts all rows where the column is not empty?

ACOUNTROWS(Table)
BDISTINCTCOUNT(Table[Column])
CCOUNT(Table[Column])
DSUM(Table[Column])

What will COUNT do with empty or blank values?

ACount them as zero
BIgnore them
CCount them as one
DCount only if they are text

Explain in your own words the difference between COUNT and DISTINCTCOUNT in Power BI.

Think about counting all items versus counting only unique items.
You got /4 concepts.

    Describe a real-life example where you would use DISTINCTCOUNT instead of COUNT.

    Imagine you want to know how many different people bought something, not how many total purchases.
    You got /4 concepts.