Bird
0
0

Consider this Power Query M code:

medium📝 dax lod result Q4 of 15
Power BI - Data Cleaning with Power Query
Consider this Power Query M code:
let
  Source = Table.FromRows({{"Product", "Price"}, {"Pen", 1.5}, {"Book", 12}}),
  Promoted = Table.PromoteHeaders(Source)
in
  Promoted

What will be the column headers after this query executes?
A["Column1", "Column2"]
B["Product", "Price"]
C["Pen", "1.5"]
D["Book", "12"]
Step-by-Step Solution
Solution:
  1. Step 1: Identify first row

    The first row is {"Product", "Price"}.
  2. Step 2: Apply Table.PromoteHeaders

    This function uses the first row as column headers.
  3. Final Answer:

    ["Product", "Price"] -> Option B
  4. Quick Check:

    Headers match first row values [OK]
Quick Trick: PromoteHeaders sets first row as headers [OK]
Common Mistakes:
  • Assuming default column names remain
  • Confusing data rows with headers
  • Selecting data values as headers

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Power BI Quizzes