Bird
0
0

You wrote this M code:

medium📝 Formula Fix Q6 of 15
Power BI - Data Cleaning with Power Query
You wrote this M code:
let
  Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
  Promoted = Table.PromoteHeaders(Source, [PromoteAllScalars=true])
in
  Promoted

But the headers did not change. What is the likely cause?
ATable.PromoteHeaders requires a second argument to work
BThe PromoteAllScalars option is invalid and causes failure
CThe first row is already headers, so no change occurs
DThe Source table is empty, so promotion fails
Step-by-Step Solution
Solution:
  1. Step 1: Understand PromoteHeaders behavior

    If the first row is already headers, promoting headers again does not change anything.
  2. Step 2: Check the options and source

    PromoteAllScalars is a valid option; empty source would cause errors; second argument is optional.
  3. Final Answer:

    The first row is already headers, so no change occurs -> Option C
  4. Quick Check:

    No change if headers already promoted [OK]
Quick Trick: No effect if headers already promoted [OK]
Common Mistakes:
  • Assuming PromoteAllScalars is invalid
  • Thinking promotion always changes headers
  • Believing second argument is mandatory

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Power BI Quizzes