exam questions

Exam PL-300 All Questions

View all questions & answers for the PL-300 exam

Exam PL-300 topic 1 question 10 discussion

Actual exam question from Microsoft's PL-300
Question #: 10
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 a transformation to extract the last 11 characters of the Logged column and set the data type of the new column to Date.
  • B. Change the data type of the Logged column to Date.
  • C. Split the Logged column by using at as the delimiter.
  • D. Apply a transformation to extract the first 11 characters of the Logged column.
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
_Jay_
Highly Voted 2 years, 3 months ago
Selected Answer: C
Answer C is best approach Split the Logged column by using "at" as the delimiter.
upvoted 94 times
GuerreiroJunior
1 year, 11 months ago
Agreed with you Jay
upvoted 3 times
...
Jay_98_11
2 years ago
agreed
upvoted 2 times
...
red_02
1 year, 8 months ago
If you choose to split it will create 2 columns but extract will give 1 column.
upvoted 9 times
...
Pals1512
10 months, 2 weeks ago
wont that give an extra space at the end?
upvoted 1 times
...
...
Meebler
Highly Voted 1 year, 11 months ago
C, You should split the Logged column by using "at" as the delimiter. This will allow you to separate the date and time into separate columns, which will enable you to analyze the complaints by date and use a built-in date hierarchy. Alternatively, you could also use a transformation to extract the date and time from the Logged column and set the data type of the new columns to Date and Time, respectively. Option A is incorrect because it only extracts the last 11 characters of the Logged column, which would not include the date. Option B is incorrect because the data in the Logged column is in a non-standard date format and cannot be directly converted to the Date data type. Option D is incorrect because it only extracts the first 11 characters of the Logged column, which would not include the time.
upvoted 37 times
AFarag
1 year, 10 months ago
delimiter uses only one character, so "at" is not valid
upvoted 3 times
cabbagepie
1 year, 9 months ago
You actually can do that if you click on the "Select or enter delimiter" in the "Split Column by Delimiter" window that pops up after you click on "Split Column" in the "Transform" tab on top of your Power BI window. After you select the --Custom-- option from the drop down menu in the "Select or enter delimiter" drop down list, you can write "at" in the text box that appears below the drop down list.
upvoted 11 times
...
dodoinparis
1 year, 5 months ago
Correct answer
upvoted 1 times
...
...
...
GraceKHE
Most Recent 1 month ago
Selected Answer: A
Tested. Yes, delimiter can customized by delimiting "at" but the column format is still Text. answer A automatically change the column format to Date hierarchy.
upvoted 1 times
...
Madhu155
2 months ago
Option D
upvoted 1 times
...
Bob_38
2 months, 2 weeks ago
CCCCCCCCCCCCCCCCC! No Brainer!
upvoted 1 times
...
Dani_eL
2 months, 3 weeks ago
Selected Answer: D
answer is D, apply a TRANSFORMATION; using a demo. create a csv with complaint id, complaint date(use the date format described in the example) Create new report -> transform data : opens Power Query editor New Sources -> csv Here comes the tricky part: when you import a csv, you can apply TRANSFORMATION on the fly; there is a button at the bottom left part of the window : Extract table using examples click that button, here comes the TRANSFORMATION You are presented with a form allowing you to pick up the fields and the data you want by example. Name your headers according to the csv headers and in the first data row, type the kind of data you want. For the logged column, you will type the date only. After import you will see that Query editor imported and converted your field in Date format. Finally, go to report view and expand your imported csv in the Data pane. You will see that Power BI created a date hierarchy
upvoted 1 times
...
Giuditta
2 months, 3 weeks ago
there are two major issues with both C and D C have the wrong delimeter. "at" needs you to have a trim operation after the split. " at " (with a space before and after) will do the trick for us D we cannot be sure that different dates with month or days with just one units will be written as i.e. 2024-12-03 or 2024-12-3 making the fixed value of 11 character a bit confusing. mostly in dates like 2024-1-1 at 00:00:0000 where the first 11 characters are 2024-1-1 a i think that C will be better. in both cases the resulted columns need to have other transformation to be interpreted as date and not string
upvoted 2 times
...
kattamuri12
2 months, 3 weeks ago
Selected Answer: C
correct is C
upvoted 1 times
...
RG10
3 months ago
While Option C (splitting by "at") could work, Option D is the better answer because it provides a more direct and efficient method to extract the date. It avoids the extra step of splitting and discarding the time part, which is unnecessary when you only need the date for analysis.
upvoted 1 times
...
nammm112
3 months, 1 week ago
Selected Answer: C
Splitting the column with the custom delimiter - at works well as the datatype is automatically recognized as Date
upvoted 2 times
...
patrup
3 months, 2 weeks ago
Selected Answer: D
there is no need for the time, only for the date
upvoted 1 times
...
MMunib
3 months, 2 weeks ago
According to me c is correcct because D option will capture space in the 11th character and there should not be space in date.
upvoted 1 times
...
Mustafa__
3 months, 3 weeks ago
Answer: D. Apply a transformation to extract the first 11 characters of the Logged column. Reason: The date part of the Logged column is contained in the first 11 characters ("2018-12-31"). To analyze the complaints by date and use the built-in date hierarchy in Power BI, you need to isolate the date from the time. By extracting the first 11 characters, you capture just the date part, which can then be converted to a Date data type. This allows Power BI to recognize it as a date and automatically generate a date hierarchy for analysis. Option A (extracting the last 11 characters) would give you only the time, not the date. Option B would not work directly because the column has both date and time, and the format includes additional text ("at"). Option C (splitting the column) is more complex and unnecessary when extracting the first 11 characters achieves the goal efficiently.
upvoted 1 times
...
rcaliandro
4 months ago
Selected Answer: C
If you get the first 11 characters then there should be a space and you need a trim operation before transform as date. The best option is to use " at" as delimiter (also in this case notice the space). So, C. Split the Logged column by using at as the delimiter is correct
upvoted 1 times
...
Rayen_BF
4 months ago
Selected Answer: D
C and D both correct answers to extract the date, but after reading the question several times, in no case they mentioned the need of the time to proceed the analysis. So as an optimized solution i go with tranformation of the current column because i don't want an unused column (time) to be loaded in my model.
upvoted 2 times
...
Milan1999
4 months, 3 weeks ago
Technically, this is the wrong answer. If you select answer C, you will split the data by "at", but you must also convert the date into a date format to use the hierarchy. As mentioned in option A, using 11 characters to split the data might not work in case there is extra space in some of the rows. So, the right answer should be to extract the date using "at" as a custom delimiter to split the columns, then convert the split column to the date data type, and then use this column for visualization.
upvoted 1 times
bdub1976
2 days, 18 hours ago
More recent versions of PBI should auto detect the split columns as date and time types.
upvoted 1 times
...
...
Migs123
5 months, 2 weeks ago
Selected Answer: C
you should split the logged column.
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