Bird
0
0

What will happen if you apply Table.PromoteHeaders on a table where the first row contains duplicate values like {"ID", "ID"}?

medium📝 dax lod result Q5 of 15
Power BI - Data Cleaning with Power Query
What will happen if you apply Table.PromoteHeaders on a table where the first row contains duplicate values like {"ID", "ID"}?
AThe columns will be renamed with suffixes to avoid duplicates
BAn error will occur due to duplicate column names
CThe second "ID" column will be removed automatically
DThe function will ignore duplicates and keep both columns named "ID"
Step-by-Step Solution
Solution:
  1. Step 1: Understand behavior with duplicate headers

    Power Query automatically renames duplicate headers by adding suffixes like "ID.1" to avoid conflicts.
  2. Step 2: Confirm no error or removal occurs

    It does not throw an error or remove columns; it adjusts names to keep all columns.
  3. Final Answer:

    The columns will be renamed with suffixes to avoid duplicates -> Option A
  4. Quick Check:

    Duplicate headers get renamed with suffixes [OK]
Quick Trick: Duplicate headers get renamed with suffixes automatically [OK]
Common Mistakes:
  • Expecting an error on duplicates
  • Thinking columns get removed
  • Assuming duplicates remain unchanged

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Power BI Quizzes