exam questions

Exam PL-300 All Questions

View all questions & answers for the PL-300 exam

Exam PL-300 topic 1 question 23 discussion

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

DRAG DROP
-

You use Power Query Editor to preview the data shown in the following exhibit.



You need to clean and transform the query so that all the rows of data are maintained, and error values in the discount column are replaced with a discount of 0.05. The solution must minimize administrative effort.

Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

Show Suggested Answer Hide Answer
Suggested Answer:

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
RazaTheLegend
Highly Voted 1 year, 8 months ago
Order is correct, we need to correct the errors first. Thus we select the column and then replace errors then change the data type.
upvoted 54 times
Asaase
1 week, 1 day ago
I disagree. This is better...... Select Discount > Set Discount type to Decimal > Replace errors with 0.05 Reason: practically, errors could have arisen because of wrong data type. It is best to correct the data type first (some errors may actually go away). Then you replace the remaining errors with 0.05. If you replace errors first, you totally miss out on potential corrections with the data type change
upvoted 1 times
...
waxlyrical
4 months, 2 weeks ago
I disagree with the order; we should change data type before replacing errors. Errors may arise from changing the data type and if this is done last the errors will remain on load.
upvoted 6 times
...
...
ET_phone_home_son
Highly Voted 1 year, 5 months ago
Select Discount > Replace errors with 0.05 > Set Discount type to Decimal
upvoted 19 times
...
rcaliandro
Most Recent 3 months, 4 weeks ago
First of all: Select discount column, Then: Replace errors to replace each error value with 0.05 Finally: For the discount column change data type to decimal number
upvoted 2 times
...
Kiran37
4 months, 3 weeks ago
correct answer
upvoted 1 times
...
shazzzy
7 months, 1 week ago
Change data type last because if the error is relating to the column not being convertable to decimal then that action will fail. If you replace to 0.05 first you are guaranteed it is convertable to decimal.
upvoted 2 times
...
AliD84
8 months ago
Correct answer is: Select Discount > Replace errors with 0.05 > Set Discount type to Decimal This sequence does not work in P-BI: Select Discount > Set Discount type to Decimal > Replace errors with 0.05
upvoted 2 times
...
Detviler
11 months, 2 weeks ago
This was so logical. No argument for this one.
upvoted 3 times
...
Pratham8285
1 year, 2 months ago
Is it incorrect if I set the Discount type to Decimal before replacing the errors?
upvoted 5 times
...
Igetmyrole
1 year, 3 months ago
The correct three consecutive actions are: Action 1: Select the discount column. This is the column we need to transform. Action 3: From the discount column, change data type to decimal Number. This step is necessary to work with numeric values. Action 5: Select replace error to replace each error value with 0.05. This will address the requirement of replacing error values with the desired discount value. Action 2: select the price column. Selecting the price column is not relevant to the requirement of cleaning and transforming the discount column. Action 4: From the discount column, change data type to whole number. Changing the data type of the discount column to a whole number is not appropriate since the discount values are decimal numbers, and you want to replace errors with 0.05, which is not a whole number.
upvoted 2 times
XAPT_Kft
1 year ago
This order is correct: - Select the discount column - Change data type to decimal - Select Replace Errors TESTED
upvoted 5 times
...
RicoPallazzo7
1 year, 2 months ago
are you sure about the order? I mean, if i modify the type after the replacement, isn't the same? Or even better, because you're not causing other problems of types before the casting
upvoted 1 times
...
...
inejo
1 year, 6 months ago
De acuerdo con la respuesta
upvoted 2 times
...
newusername
1 year, 7 months ago
Why do we need to change the datatype?
upvoted 3 times
LouStar2
1 year, 6 months ago
its currently stored as text its a decimal value so store it as a decimal
upvoted 1 times
...
nick0651
1 year, 1 month ago
yes , it is required to change the datatype of the column
upvoted 1 times
...
...
alojt
1 year, 8 months ago
Yes please. It would be great if someone explain the 5 & 3 answer order. Assuming the answers are 1-5 top to bottom. Could/Should the answer be 3 & 5 instead?
upvoted 1 times
alojt
1 year, 8 months ago
Oh no, I get it now. Of course, you want to get rid of the errors first. :)
upvoted 2 times
...
Igetmyrole
1 year, 3 months ago
The correct three consecutive actions are: Action 1: Select the discount column. This is the column we need to transform. Action 3: From the discount column, change data type to decimal Number. This step is necessary to work with numeric values. Action 5: Select replace error to replace each error value with 0.05. This will address the requirement of replacing error values with the desired discount value. Action 2: select the price column. Selecting the price column is not relevant to the requirement of cleaning and transforming the discount column. Action 4: From the discount column, change data type to whole number. Changing the data type of the discount column to a whole number is not appropriate since the discount values are decimal numbers, and you want to replace errors with 0.05, which is not a whole number.
upvoted 1 times
...
...
abhishek15695121
1 year, 8 months ago
given answers are correct
upvoted 1 times
...
MarcoW91PL
1 year, 8 months ago
Correct
upvoted 1 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