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, 5 months ago
Option C should be the correct answer not option B
upvoted 52 times
...
Aneran
Highly Voted 2 years, 2 months 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, 8 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, 6 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
9 months ago
Well, you can Trim it!
upvoted 1 times
1CY1
9 months ago
You would then also have to convert it to a date.
upvoted 1 times
...
...
VladStan
9 months, 1 week ago
Thanks for this!!
upvoted 1 times
...
...
...
...
lechuc508
Most Recent 3 weeks, 3 days ago
Selected Answer: A
The Logged column has values like: 2018-12-31 at 08:59 To analyze by date using a date hierarchy (Year > Quarter > Month > Day), you need to extract just the date portion (2018-12-31) and convert it to a Date data type. The first 10 characters give you the date (2018-12-31), but the answer suggests extracting the first 11 characters, which includes a space after the date ("2018-12-31 "). This is acceptable since Power BI will ignore the extra space when converting to Date. Once extracted, you set the data type to Date, which enables built-in date hierarchy in Power BI.
upvoted 1 times
...
d28dcc1
1 month, 2 weeks ago
Selected Answer: A
This is a poor question with multiple correct answers. Specifically A and C could BOTH work. I created a CSV and tested A in PowerBI. After the split PowerBI automatically removed the trailing space and recognized the first 11 characters as a date. You should try it yourself. For answer C you could add the date column and fill with your required dates and also get a working solution. With PowerBI's automatic trailing space deletion and date detection, Answer A might be the best choice here.
upvoted 1 times
...
0002110
3 months, 3 weeks ago
Selected Answer: C
C is correct
upvoted 1 times
...
0002110
3 months, 3 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
4 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
5 months, 2 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
7 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
7 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
10 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
12 months ago
I'd select option C
upvoted 2 times
...
adriankohws
1 year, 1 month 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
1 year, 1 month 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
1 year, 1 month 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
1 year, 1 month 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, 1 month ago
we didn't get the answer :c
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 ...