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.
Question
Options
- ACombine
- BInsertRows
- CJoin
- DTransformRow
How the community answered
(31 responses)- A87% (27)
- B3% (1)
- C3% (1)
- D6% (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.
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.
Table.InsertRows is used to insert specific rows into an existing table, not to combine two entire tables.
Table.Join is used for merging tables horizontally (joining columns) based on matching keys, which is a different operation from appending tables.
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
Community Discussion
No community discussion yet for this question.