exam questions

Exam PL-300 All Questions

View all questions & answers for the PL-300 exam

Exam PL-300 topic 1 question 27 discussion

Actual exam question from Microsoft's PL-300
Question #: 27
Topic #: 1
[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 the Parse function from the Data transformations options to the Logged column.
  • B. Change the data type of the Logged column to Date.
  • C. Split the Logged column by using at as the delimiter.
  • D. Create a column by example that starts with 2018-12-31.
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
tranquanghuy2111
Highly Voted 1 year, 8 months ago
Selected Answer: C
A: cause error. C: correct, although it lacks step change data type
upvoted 20 times
bsdk_jinx
1 year, 3 months ago
Datatype is changed automatically you need not do it manually :)
upvoted 7 times
...
Kish1604
1 year, 8 months ago
Change Data Type step is not required since the data type gets updated automatically after splitting the column by delimiter
upvoted 10 times
bdub1976
1 year, 6 months ago
Yep, the answer is C and using delimiter "at" is the easiest path and will automatically adjust the column to date format upon hitting Ok. Also, this method retains the time column in time format. If time was not a requirement, then you might be better using Extract Table Using Examples to minimize the data imported.
upvoted 3 times
...
...
...
momo1165
Highly Voted 1 year, 5 months ago
Question appears multiple times with different answer options, in this set of answers, C is correct.
upvoted 14 times
...
Lulu_2022
Most Recent 6 days, 14 hours ago
Selected Answer: D
The best answer is: D. Create a column by example that starts with 2018-12-31. Here’s why: The original format "2018-12-31 at 08:59" is not recognized as a valid date by Power BI because of the "at" text. Using Column from Examples in Power Query lets you easily extract just the date portion (2018-12-31) without writing M code. Once extracted, you can change the new column’s data type to Date, which enables Power BI’s built-in date hierarchy (Year, Quarter, Month, Day). Why not the others? A. Parse function: Power BI doesn’t have a built-in “Parse” function that can handle this custom format directly. B. Change data type to Date: This will fail because the "at" string makes the format invalid for automatic conversion. C. Split by “at”: This works, but it creates two columns and requires extra cleanup. Option D is more efficient and intuitive.
upvoted 1 times
...
Elnaeem
1 month ago
Selected Answer: B
Artificial intelligence (Gemini) answer: The most effective solution to analyze complaints by the logged date and use a built-in date hierarchy in Power BI, given the "2018-12-31 at 08:59" format, is to change the data type of the Logged column to Date. Here's why: * Power BI's Intelligent Handling: Power BI is very good at recognizing common date and time formats.
upvoted 1 times
...
Fellow_Commentor
2 months ago
Selected Answer: D
Column By Example i.e, Answer D is correct, since it automatically extracts the date from the column and changes its type to DATE in the new column. Again, using 'at' as delimiter will introduce spaces as prefix and suffix and create an unneeded time column which is not asked for in the question
upvoted 1 times
...
BIFakeGuru
6 months ago
Selected Answer: B
I had a similar question in the Microsoft pl-300 preparation Course (on coursera): " You have a CSV file that contains user complaints. The table contains a column called Logged, which has data and the time of each complaint. The data is logged in the following format: 2022-12-21 at 08:35. You want to analyze the complaints by the logged date and utilize Power BI’s built-in date hierarchy. What should you do? - Split the logged column using ‘at’ as a delimiter. ✖ - You can use the same column as the date hierarchy. ✖ - Apply transformation to extract the column's first characters that only contain the date. ✖ - Change the data type of the logged column to Date. ✔ " So answer is B, Probably because PowerBI can recognize Date in that format
upvoted 1 times
Asukaaaaa
5 months ago
I have also encountered this question in Coursera. It did provide the correct answer as change the data type, but I tried it in PowerBI which does not recognize it as a Date format
upvoted 2 times
...
...
Sangameshks
6 months ago
Selected Answer: D
If we create a column with date format. Power bi will automatically identify it as date column
upvoted 1 times
...
Srilatha_B
6 months, 1 week ago
Selected Answer: B
DataType change is direct and allows to analyze by date, month, year etc. No need to split and analyze.
upvoted 2 times
...
GiuseppeTanda
7 months ago
Selected Answer: C
C work faster then D becouse automaticcally reconize the data type for date and time. D require an additional step to change data type from text and in both case you will have 2 column as final result.
upvoted 1 times
...
LuluSkyy
8 months ago
I want to say the answer is D because the question talks about a built in date hierarchy
upvoted 3 times
...
Deva_1
8 months, 4 weeks ago
Selected Answer: D
D. Create a column by example that starts with 2018-12-31 is the correct answer bcz if you add column from example(i.e. 2018-12-31) then it gives only data format. Answer C is wrong bcz if we use "at as delimiter then the space before at will be added in the data format so the column will not automatically detect as a date format.
upvoted 3 times
Bhanu__prakash
1 year, 1 month ago
Have you even tried? The space before 'at' will be removed automatically, that's the beauty of intelligence in Power BI. I've tried, both C and D options work. But for option D, the data type will be set to text and we need to add additional step to change data type, wherein for option C, Power BI automatically recognizes and changes the data type.
upvoted 7 times
...
...
rcaliandro
10 months, 2 weeks ago
This is similar to another question in which "C - Split the Logged column by using at as the delimiter" was the right answer. But why in this case "D. Create a column by example that starts with 2018-12-31" is wrong???
upvoted 2 times
...
Kiran37
11 months, 1 week ago
correct answer
upvoted 1 times
...
greenlever
1 year, 1 month ago
Selected Answer: C
Tested. Data type as Date is set auto BUT Create by example - data type is not set to Date.
upvoted 3 times
...
jsav1
1 year, 1 month ago
Selected Answer: C
C is the more reliable option
upvoted 1 times
...
yaya32
1 year, 1 month ago
Selected Answer: C
C for me
upvoted 1 times
...
Sheree_Data
1 year, 1 month ago
Microsoft Fabric said choice D.
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 ...