PL-300 · Question #61
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might…
The correct answer is B. No. To ensure nonnumeric values in the CustomerID column are set to 0, using the Advanced Editor in Power Query is not the most direct solution.
Question
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You have a query for a table named Sales. Sales has a column named CustomerID. The Data Type of CustomerID is Whole Number. You refresh the data and find several errors. You discover that new entries in the Sales table contain nonnumeric values. You need to ensure that nonnumeric values in the CustomerID column are set to 0. Solution: From Query Editor, open Advanced Editor and add the following query step. Does this meet the goal?
Options
- AYes
- BNo
How the community answered
(42 responses)- A17% (7)
- B83% (35)
Why each option
To ensure nonnumeric values in the CustomerID column are set to 0, using the Advanced Editor in Power Query is not the most direct solution.
If the solution were 'Yes', it would imply that merely opening the Advanced Editor is a direct and efficient way to replace errors, which is generally not true for simple error replacement tasks where dedicated UI options are available.
While the Advanced Editor allows for direct manipulation of the M-code, it is not the most direct or efficient way to replace errors in a column with a specific value like 0. Power Query provides a dedicated 'Replace Errors' function within the UI for this purpose, making the Advanced Editor an unnecessarily complex approach for this specific task.
Concept tested: Power Query error handling methods and efficiency
Source: https://learn.microsoft.com/en-us/power-query/query-overview
Community Discussion
No community discussion yet for this question.