exam questions

Exam PL-300 All Questions

View all questions & answers for the PL-300 exam

Exam PL-300 topic 2 question 58 discussion

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

You have a CSV file that contains user complaints. The file contains a column named Logged. Logged contains the date and time each complaint occurred. The data in Logged is in the following format: 2018-12-31 at 08:59.

You need to be able to analyze the complaints by the logged date and use a built-in date hierarchy.

What should you do?

  • A. Apply a transformation to extract the first 11 characters of the logged column.
  • B. Add a conditional column that outputs 2018 if the Logged column starts with 2018 and set the data type of the new column to Whole Number.
  • C. Create a column by example that starts with 2018-12-31 and set the data type of the new column to Date.
  • D. Apply a transformation to extract the last 11 characters of the Logged column and set the data type of the new column to Date.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
Kai_don
Highly Voted 2 years, 3 months ago
Option C should be the correct answer not option B
upvoted 52 times
...
Aneran
Highly Voted 2 years ago
To analyze the complaints by the logged date and use a built-in date hierarchy, we need to extract the date portion of the "Logged" column and convert it to a date format. Therefore, the best option among the given choices is: A. Apply a transformation to extract the first 11 characters of the logged column. Since the date value is stored in the first 11 characters of the "Logged" column, extracting those characters using the "Extract" transformation in Power Query will give us the date value in the format "yyyy-MM-dd". We can then set the data type of the new column to "Date" to convert it into a date format. This will allow us to analyze the complaints by the logged date and use the built-in date hierarchy in Power BI. Option B is not necessary and will not achieve the desired result. Option C will create a single date value and not allow us to analyze the complaints by the logged date. Option D suggested extracting the last 11 characters, but they contain both date and time values and may not result in the correct date format.
upvoted 18 times
tranquanghuy2111
1 year, 6 months ago
i did try extracting first 11 characters but then cannot change the data type of 2018-12-31 to date. still dont know why
upvoted 3 times
LeeTheRed
1 year, 4 months ago
The date part is the first 10 characters, if you extract 11 characters then there will be a trailing space behind the date part thus won't be able to convert it to date. thus A is NOT the correct answer.
upvoted 14 times
1CY1
7 months, 1 week ago
Well, you can Trim it!
upvoted 1 times
1CY1
7 months, 1 week ago
You would then also have to convert it to a date.
upvoted 1 times
...
...
VladStan
7 months, 2 weeks ago
Thanks for this!!
upvoted 1 times
...
...
...
...
0002110
Most Recent 1 month, 4 weeks ago
Selected Answer: C
C is correct
upvoted 1 times
...
0002110
1 month, 4 weeks ago
Selected Answer: A
Extracting the first 11 characters ("2018-12-31") will give you the date part, which can then be converted to a Date data type. This will allow you to use the built-in Date Hierarchy in Power BI to analyze complaints by year, quarter, month, and day.
upvoted 1 times
...
L3tty
2 months, 3 weeks ago
Selected Answer: A
I don't know but I think we are talking about different types of “transformation” here Once by Power Query (M) (converting to date works) -> A is correct and Dax (convert to date does not work) -> A is wrong I have just tested it and I will choose A Please write if I miss something :)
upvoted 1 times
...
Odidepse
3 months, 3 weeks ago
Selected Answer: A
A would be the better answer, You need to extract only the date portion (which is the first 11 characters: "2018-12-31") then set the data type using powerbi's out of the box date hierarcy feature. D cannot be as the "at 08:59" is outside the 11 character which cannot be converted to date.
upvoted 1 times
...
GiuseppeTanda
5 months ago
Selected Answer: C
C is right. A is wrong becouse eventually are 10 not 11 characters to extract the date B end with a whole number datat type insted of date D doesn't even extract a reconizable
upvoted 1 times
...
jaume
5 months, 1 week ago
Selected Answer: C
Extracting "last 11 characters" as in Option D would result in uselss data (as "31 at 08:59") Extracting "first 11 characters would result in a useful date string (as "2018-12-3") but it would be still needed to change data type to "Date" (data is coming from a csv file, so definitively the original field content is not "Date" type). Conditional column based on whether a field starts with 2018 will not work... what if it's a date from different year? this also would only result year number but not entire date for 2018 dates and its type would be set to whole number not date, so date hierarchy would also not be available. Opion C is the right one in my opinion, creating a full brand column with Date type data on it based on a first example out of the first data row mentioned in the question
upvoted 1 times
...
539d541
8 months, 1 week ago
Selected Answer: C
Option C is correct only - I created an example csv and tested it. Using this, Power BI automatically generates the hierarchy required by the question also. A is wrong because it will only partially get you there, returning the date as a String value not formatted as date. B is only going to return the Year number D is going to give you some of time, including the word 'at' etc.
upvoted 4 times
...
nassimanafa
10 months ago
I'd select option C
upvoted 2 times
...
adriankohws
11 months, 2 weeks ago
I am not sure also why there was a correct answer on getting first 11 characters as there are only 10, 11 will have a space and not be recognized if trying to convert to date format, however, it will never be "B", as the question is to analyse over time, not just by year. Answer "B" is just year.
upvoted 2 times
...
aalnhari11
11 months, 3 weeks ago
Selected Answer: A
Same this question came in previous topic (question #10, Topic1), and the answer was (Apply a transformation to extract the first 11 characters of the Logged column). So which one is correct?
upvoted 1 times
...
Aarch
11 months, 4 weeks ago
Selected Answer: C
Yes C is correct answer, B is making the date field a whole number which doesnt help in analysing the date field data
upvoted 2 times
...
Aarch
11 months, 4 weeks ago
Selected Answer: B
B is the correct answer , because C is making the table as Date Table, which will remove the Date hierarchy feature .Question demands Date Hierarchy
upvoted 1 times
...
skinnygore
1 year ago
we didn't get the answer :c
upvoted 1 times
...
ultrxlight
1 year, 1 month ago
I'm starting to think that the person who posts those questions just answers them at random. B? really? that is absurd
upvoted 3 times
...
hakanc123
1 year, 1 month ago
this question is more than once in the test examples but i still dont understand which is the correct answer :)
upvoted 4 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