exam questions

Exam PL-300 All Questions

View all questions & answers for the PL-300 exam

Exam PL-300 topic 2 question 86 discussion

Actual exam question from Microsoft's PL-300
Question #: 62
Topic #: 2
[All PL-300 Questions]

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?

  • A. In the Total Item Quantity column, replace the null values with 0.
  • B. In the Tax Amount column, remove rows that contain null values.
  • C. In the Freight Amount column, remove rows that contain null values.
  • D. In the Freight Amount column, replace the null values with 0.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
rajukg
Highly Voted 1 year, 1 month ago
D is the correct answer. Removing rows is not the solution. Item Quantity is always present. Replace Freight Amount with 0 if it is null
upvoted 11 times
...
GustavoFring
Highly Voted 1 year, 1 month ago
Won't replacing null values with zero bring down the average freight amount? That wouldn't be an accurate average of the freight amounts when rows with no data are still included. Unless the client would be okay with that,
upvoted 6 times
noone420
1 year, 1 month ago
It says "when there is no associated value" which i inferred to mean the amount is 0.
upvoted 3 times
...
...
jaume
Most Recent 5 months, 1 week ago
Selected Answer: D
A. is "...always populated...:" so no need o replace any null value B. removing rows with null values would also remove information from other columns that are required for the report C. similar to previous, we cannot remove any column without losing needed information D. to calculate averages, we need to replace ull values with 0
upvoted 1 times
...
rcaliandro
8 months, 1 week ago
Selected Answer: D
Replace the nulls with 0's in the Freight Amount column
upvoted 2 times
...
0e18c76
11 months, 2 weeks ago
I agree with the response. However, If replacing null values by zero for freight amounts is correct, I suppose that replacing null values by zero for Tax amount would be correct, as well. To have a more complete response, why not considering also this option?
upvoted 2 times
...
99fafba
1 year ago
Svp pourquoi D serait vrai et pas A?
upvoted 1 times
6b4c58b
8 months, 3 weeks ago
parce que "Total Item Quantity columns are always populated", aucune raison pour faire un changement la. "Freight Amount" contient des valuers "nulls" qu'on neut peut pas utiliser pour recevoir un moyen. Alors on remplace tous les valuers nulles avec 0. J'espere que ca fais du sense, francais c'est pas mon premier langue
upvoted 1 times
...
...
noone420
1 year, 1 month ago
Selected Answer: D
D is the answer
upvoted 3 times
...
YaakovShlomo
1 year, 1 month ago
Selected Answer: D
Need to get rid of nulls so we can aggregate
upvoted 2 times
...
Florinuca
1 year, 2 months ago
From my point of view, no option is correct! Why? Because the "freight Amount" column is the problem. If this column has no values for all rows, so it can have "null" values, it is not recommended to create a visualization where we use the AVERAGE operation for this column (the sum will always be ok, but the number by which it is divided is not correct, taking into account null values it will be higher and we will never obtain a correct average ). A similar question was in the documentation for the preparation of this exam. Also, we can't remove the rows that contain null values based on "Freight Amount" column, because the deleted rows will contain information for the other columns that are used in the analysis and we won't get real and correct results in their analysis.
upvoted 4 times
otapi
1 year, 1 month ago
I would keep the table as is, but get the average of freight by a DAX using Calculate and filter rows to where freight is not null.
upvoted 1 times
otapi
1 year, 1 month ago
2nd thought, let's replace nulls to 0 in the freight, but use the filter in calculate dax to [Freight]>0. So option D is fine.
upvoted 2 times
...
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago