Bird
0
0

Why does the DISTINCT function in DAX sometimes return fewer rows than expected when applied on a column with blank values?

hard📝 Conceptual Q10 of 15
Power BI - Data Cleaning with Power Query
Why does the DISTINCT function in DAX sometimes return fewer rows than expected when applied on a column with blank values?
ADISTINCT treats all blank values as one unique value
BDISTINCT ignores blank values completely
CDISTINCT counts each blank as a separate unique value
DDISTINCT causes an error if blanks exist
Step-by-Step Solution
Solution:
  1. Step 1: Understand how DISTINCT treats blanks

    DAX DISTINCT treats all blank (empty) values as a single unique value.
  2. Step 2: Effect on row count

    Multiple blank rows count as one unique blank, reducing total distinct count.
  3. Final Answer:

    DISTINCT treats all blank values as one unique value -> Option A
  4. Quick Check:

    DISTINCT groups all blanks as one unique value [OK]
Quick Trick: DISTINCT groups all blanks as one unique value [OK]
Common Mistakes:
  • Thinking blanks are ignored
  • Assuming blanks count as multiple unique values
  • Expecting errors from blanks

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Power BI Quizzes