nerdexam
MicrosoftMicrosoft

PL-300 · Question #382

PL-300 Question #382: Real Exam Question with Answer & Explanation

The correct answer is D: In the Freight Amount column, replace the null values with 0.. When calculating averages for columns that can contain null values, replacing nulls with zero ensures that orders with no value for that metric are correctly included in the average calculation.

Submitted by lars.no· Apr 18, 2026

Question

You use Power Query Editor to preview a query that contains sales order data in the following columns: - Tax Amount - Sales Order ID - Freight Amount - Subtotal Amount - Total Item Quantity The Sales Order ID column uniquely identifies each sales order. The Subtotal Amount and Total Item Quantity columns are always populated, but the Tax Amount and Freight Amount columns are sometimes null when an order has no associated amount. You need to query the data to identify the following metrics by month: - The average item quantity per order - The average freight amount per order - The maximum item quantity per order How should you modify the query?

Options

  • AIn the Total Item Quantity column, replace the null values with 0.
  • BIn the Tax Amount column, remove rows that contain null values.
  • CIn the Freight Amount column, remove rows that contain null values.
  • DIn the Freight Amount column, replace the null values with 0.

Explanation

When calculating averages for columns that can contain null values, replacing nulls with zero ensures that orders with no value for that metric are correctly included in the average calculation.

Common mistakes.

  • A. Replacing null values in 'Total Item Quantity' with 0 is unnecessary because the question states this column is 'always populated', implying no nulls exist.
  • B. Removing rows with null values in 'Tax Amount' would exclude entire sales orders from the analysis, potentially skewing other metrics like 'average item quantity per order' if those orders contained valid item quantities.
  • C. Removing rows with null values in 'Freight Amount' would exclude all orders that had no freight, leading to an average that only reflects orders with positive freight amounts, thus inaccurately representing the average freight across all orders.

Concept tested. Power Query data cleansing for aggregation

Reference. https://learn.microsoft.com/en-us/power-query/replacevalues

Community Discussion

No community discussion yet for this question.

Full PL-300 PracticeBrowse All PL-300 Questions