PL-300 Exam QuestionsBrowse all questions from this exam

PL-300 Exam - Question 27


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?

Show Answer
Correct Answer: BC

To analyze complaints by date and use a built-in date hierarchy, the most straightforward approach is to change the data type of the Logged column to Date. This will convert the string dates in the format '2018-12-31 at 08:59' to a date data type that can be easily analyzed using date functions and hierarchies in most data analysis tools.

Discussion

17 comments
Sign in to comment
tranquanghuy2111Option: C
Oct 5, 2023

A: cause error. C: correct, although it lacks step change data type

Kish1604
Oct 15, 2023

Change Data Type step is not required since the data type gets updated automatically after splitting the column by delimiter

bdub1976
Dec 12, 2023

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.

bsdk_jinx
Mar 2, 2024

Datatype is changed automatically you need not do it manually :)

momo1165Option: C
Jan 2, 2024

Question appears multiple times with different answer options, in this set of answers, C is correct.

bbshu0801Option: C
Dec 29, 2023

Same question with #10, Topic 1. So the answer should be same which is C.

JohnChungOption: D
Jan 2, 2024

I tried. D is correct. It is easy to create a new column only contains the date with Examples

momo1165
Jan 2, 2024

D adds another column, C does not

Adja_Fall
Jan 26, 2024

C divise la colonne en 2 donc il y a bien une nouvelle colonne

user28272615
Feb 12, 2024

Was at the exam on February 12th 2024

DANIELOption: C
Feb 19, 2024

Tested in PBI with dummy data : A & B will cause an error in the data --> you will read "error" instead of original data D will truncate the date correctly but will keep the original string format (no hierarchy possible) C will split correctly and apply correct format on the fly, date for date and time for time

28485e1
Feb 24, 2024

There is another question verbatim like this one and the answer is, "extract the first 11 characters." Delimiter answer appears on both. Is it saying that extracting the characters is a better option if available? I don't understand.

DsbuffOption: C
Dec 19, 2023

C is correct. By splitting the Logged column, you can separate the date and time into two columns.

KRISTINMERIEANNOption: D
Apr 14, 2024

https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-add-column-from-example

Deva_1Option: D
Apr 28, 2024

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.

Bhanu__prakash
May 3, 2024

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.

shazzzyOption: C
May 2, 2024

ANS. C I tested D and it didn't change the data type to Date, it remained as text. I also tested C without using spaces before and after the 'at' and it DID change the data type to date. The fact that there are two questions like this but C is common to both questions makes extra sure it is correct. C!

Sheree_DataOption: D
May 5, 2024

Microsoft Fabric said choice D.

TrainingCA06Option: C
Mar 15, 2024

be careful, this is the same question #10, and in 10 the right answer was D and here C. crazy

sdfokjwov
Mar 26, 2024

They've got different answers - In #10, D is the simplest, in this Q, C is

yaya32Option: C
May 8, 2024

C for me

jsav1Option: C
May 10, 2024

C is the more reliable option

greenleverOption: C
May 27, 2024

Tested. Data type as Date is set auto BUT Create by example - data type is not set to Date.

Kiran37
Jul 21, 2024

correct answer