Bird
0
0

Given this DAX expression:

medium📝 dax lod result Q4 of 15
Power BI - Data Cleaning with Power Query
Given this DAX expression:
UniqueCustomers = DISTINCT(Customer[CustomerID])
What will be the result of COUNTROWS(UniqueCustomers) if the Customer table has 100 rows with 80 unique CustomerIDs?
A100
B80
C20
D0
Step-by-Step Solution
Solution:
  1. Step 1: Understand DISTINCT output

    DISTINCT(Customer[CustomerID]) returns a table with only unique CustomerIDs, so 80 unique rows.
  2. Step 2: COUNTROWS counts rows in the unique table

    COUNTROWS(UniqueCustomers) counts these unique rows, which is 80.
  3. Final Answer:

    80 unique CustomerIDs counted -> Option B
  4. Quick Check:

    COUNTROWS(DISTINCT()) = number of unique rows [OK]
Quick Trick: COUNTROWS(DISTINCT()) counts unique rows [OK]
Common Mistakes:
  • Counting total rows instead of unique
  • Confusing difference between DISTINCT and COUNTROWS
  • Assuming duplicates are counted

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Power BI Quizzes