nerdexam
Microsoft

DP-500 · Question #63

You use Advanced Editor in Power Query Editor to edit a query that references two tables named Sales and Commission. Sample data for Sales (OrderID, SalesPerson, Amount) and Commission (Person…

The correct answer is A. Combine. To combine tables by appending rows, ensuring all rows from the Sales table are present, the M function Table.Combine should be used as the initial operation.

Query and transform data

Question

You use Advanced Editor in Power Query Editor to edit a query that references two tables named Sales and Commission. Sample data for Sales (OrderID, SalesPerson, Amount) and Commission (Person, Commission) is provided. You need to merge the tables without losing any rows in the Sales table. How should you complete the initial operation 'Combined = Table.'option''?

Options

  • ACombine
  • BInsertRows
  • CJoin
  • DTransformRow

How the community answered

(31 responses)
  • A
    87% (27)
  • B
    3% (1)
  • C
    3% (1)
  • D
    6% (2)

Why each option

To combine tables by appending rows, ensuring all rows from the Sales table are present, the M function `Table.Combine` should be used as the initial operation.

ACombineCorrect

While 'merge' typically refers to joining columns, if the intent is to preserve all rows from the 'Sales' table and combine it with 'Commission' in a row-wise manner, 'Table.Combine' is the appropriate Power Query M function. 'Table.Combine' appends one or more tables, stacking them vertically, ensuring all rows from the primary table (Sales) are included in the combined output.

BInsertRows

Table.InsertRows is used to insert specific rows into an existing table, not to combine two entire tables.

CJoin

Table.Join is used for merging tables horizontally (joining columns) based on matching keys, which is a different operation from appending tables.

DTransformRow

Table.TransformRows transforms existing rows within a table but does not combine or merge two separate tables.

Concept tested: Power Query M function Table.Combine (Append)

Source: https://learn.microsoft.com/en-us/powerquery-m/table-combine

Topics

#Power Query M#Table Functions#Data Integration#Advanced Editor

Community Discussion

No community discussion yet for this question.

Full DP-500 Practice