Microsoft

PL-300 practice question 4

Microsoft Power BI Data Analyst · free question 4 of 20

Question

You import two Microsoft Excel tables named Customer and Address into Power Query. Customer contains the following columns: - Customer ID - Customer Name - Phone - Email Address - Address ID Address contains the following columns: - Address ID - Address Line 1 - Address Line 2 - City - State/Region - Country - Postal Code Each Customer ID represents a unique customer in the Customer table. Each Address ID represents a unique address in the Address table. You need to create a query that has one row per customer. Each row must contain City, State/Region, and Country for each customer. What should you do?
  • A. Merge the Customer and Address tables. Correct
  • B. Group the Customer and Address tables by the Address ID column.
  • C. Transpose the Customer and Address tables.
  • D. Append the Customer and Address tables.

Explanation

A merge joins Customer to Address on Address ID, keeping one row per customer and letting you expand City, State/Region, and Country into it. Appending stacks rows from both tables instead of adding columns. Grouping aggregates rows, and transposing swaps rows and columns, so neither combines the two tables.

Need the theory? Learn it free in the PL-300 course on Godlike Academy

Practice the whole free set

Answer all 20 free PL-300 questions with instant feedback, or unlock all 393 questions with Learn and Exam modes.