Bird
0
0

You wrote Table.Distinct(Sales, "ProductID") to remove duplicates by ProductID but get an error. What is the likely problem?

medium📝 Formula Fix Q14 of 15
Power BI - Data Cleaning with Power Query
You wrote Table.Distinct(Sales, "ProductID") to remove duplicates by ProductID but get an error. What is the likely problem?
AThe second argument should be a list of column names, not a single string
BTable.Distinct does not accept a second argument
CProductID column does not exist in Sales table
DYou must use Table.RemoveDuplicates instead
Step-by-Step Solution
Solution:
  1. Step 1: Check Table.Distinct syntax for columns

    The second argument must be a list of column names, e.g., {"ProductID"}, not a string.
  2. Step 2: Identify error cause

    Passing "ProductID" as a string causes a syntax error because it expects a list.
  3. Final Answer:

    The second argument should be a list of column names, not a single string -> Option A
  4. Quick Check:

    Columns argument = List, not string [OK]
Quick Trick: Use curly braces {} for column list in Table.Distinct [OK]
Common Mistakes:
  • Passing column name as string instead of list
  • Using wrong function name
  • Assuming single argument works for columns

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Power BI Quizzes