Question 298 of 966
Prepare the datamediumMultiple ChoiceObjective-mapped

Quick Answer

The answer is to use the 'Detect Data Type' function in Power Query, as it automatically scans the column's values and converts mixed formats like '2024-01-15 14:30:00' and '01/15/2024 2:30 PM' into a consistent datetime type. This is the best practice because Power Query's detection engine analyzes each row to infer the correct type, eliminating the need for manual parsing or conditional logic when handling inconsistent date formats. On the PL-300 exam, this scenario tests your understanding of Power Query's data profiling and transformation capabilities, often appearing as a trap where candidates try to use locale-specific functions or manual text splitting instead. A common memory tip is to think of 'Detect Data Type' as the automatic "first responder" for messy date columns—it handles the heavy lifting before you apply any time intelligence calculations. Just remember: when dates look different but mean the same thing, let Power Query detect the pattern first.

PL-300 Prepare the data Practice Question

This PL-300 practice question tests your understanding of prepare the data. Compare every option against the stated constraints before choosing — the best answer satisfies all requirements, not just the most obvious one. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

You are preparing a Power BI dataset from a SQL Server data source. The source table has a datetime column 'OrderDate' that you need to use for time intelligence calculations. However, you notice that the data contains dates in multiple formats (e.g., '2024-01-15 14:30:00' and '01/15/2024 2:30 PM'). What is the best practice to ensure consistent date handling in Power Query?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "best"

    Why it matters: Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.

Question 1mediummultiple choice
Full question →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Use the 'Detect Data Type' function in Power Query to automatically identify and convert the column.

Option B is correct because the 'Detect Data Type' function in Power Query analyzes the column's values to infer the most appropriate data type, automatically handling mixed formats like '2024-01-15 14:30:00' and '01/15/2024 2:30 PM' by converting them to a consistent datetime type. This ensures that time intelligence calculations in Power BI can rely on a uniform date/time column without manual intervention or data loss.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Load the column as text and ignore any conversion errors.

    Why it's wrong here

    Ignoring errors will result in missing or incorrect date values.

  • Use the 'Detect Data Type' function in Power Query to automatically identify and convert the column.

    Why this is correct

    Detect Data Type analyzes the data and applies the appropriate type, handling inconsistent formats.

    Clue confirmation

    The clue word "best" in the question point toward this answer.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Change the column type to 'Date' in Power Query before loading.

    Why it's wrong here

    This may still fail if the formats are inconsistent, as Power Query uses the current regional settings for conversion.

  • Split the column into separate date and time columns and then combine them.

    Why it's wrong here

    Unnecessary and may introduce complexity; Power Query can handle datetime directly.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often choose Option C (changing to 'Date' type) thinking it simplifies the data, but they overlook that this discards the time component, which is essential for many time intelligence calculations and can cause unexpected aggregation errors.

Detailed technical explanation

How to think about this question

Under the hood, Power Query's 'Detect Data Type' uses locale-aware parsing and the M engine's Type.Is and Value.Type functions to evaluate each value against supported date/time formats, applying a consistent type (e.g., datetime) that aligns with the source's regional settings. In real-world scenarios, this is critical when ingesting data from legacy systems or CSV exports where datetime formats vary by region, as manual type changes can fail on ambiguous formats like '02/03/2024' (Feb 3 vs Mar 2).

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related PL-300 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free PL-300 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this PL-300 question test?

Prepare the data — This question tests Prepare the data — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Use the 'Detect Data Type' function in Power Query to automatically identify and convert the column. — Option B is correct because the 'Detect Data Type' function in Power Query analyzes the column's values to infer the most appropriate data type, automatically handling mixed formats like '2024-01-15 14:30:00' and '01/15/2024 2:30 PM' by converting them to a consistent datetime type. This ensures that time intelligence calculations in Power BI can rely on a uniform date/time column without manual intervention or data loss.

What should I do if I get this PL-300 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Are there clue words in this question I should notice?

Yes — watch for: "best". Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more ways this is tested on PL-300

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. You are preparing data from a CSV file that has inconsistent date formats. Some rows use 'MM/dd/yyyy' and others use 'dd/MM/yyyy'. You need to parse all dates correctly. What is the best approach in Power Query?

hard
  • A.Use the 'Replace Values' to standardize the date format, then change data type.
  • B.Use the 'Parse' -> 'Date' transformation with a specific culture.
  • C.Use the 'Split Column' by delimiter to separate date parts.
  • D.Use the 'Detect Data Type' feature to automatically identify the format.

Why A: Option A is correct because 'Replace Values' allows you to standardize the inconsistent date strings (e.g., swapping day and month parts) before Power Query attempts to parse them as dates. After replacing the delimiters or reordering parts, you can change the column type to 'Date' using a consistent culture (e.g., 'en-US' for MM/dd/yyyy), ensuring all rows parse correctly regardless of original format.

Keep practising

More PL-300 practice questions

Last reviewed: Jun 24, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This PL-300 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PL-300 exam.