Courseiva
Prepare the dataeasyMultiple ChoiceObjective-mapped

How to Split Column by Delimiter in Power Query

You have a dataset with a column 'FullName' containing values like 'John Doe'. You need to split this column into 'FirstName' and 'LastName' using the space delimiter. Which Power Query transformation should you use?

Quick Answer

The answer is to use the Split Column by Delimiter transformation in Power Query. This is correct because the transformation is specifically engineered to parse a single text column into multiple columns by identifying a consistent separator, such as a space, which directly addresses the need to separate 'John Doe' into distinct 'FirstName' and 'LastName' fields. On the Microsoft Power BI Data Analyst PL-300 exam, this task tests your ability to perform data shaping and cleansing within the Power Query Editor, a core skill for preparing data for analysis. A common trap is attempting to use the Extract or Replace Values functions, which do not split a column into multiple parts; instead, they modify the existing text. To remember this, think of the delimiter as a knife that cleanly cuts the data at every space or comma, creating new columns from the pieces.

⚠ Common exam trap

It's easy for candidates to confuse 'Extract Text' with splitting, thinking it can parse delimiters, but 'Extract Text' only extracts fixed-length or positional substrings, not delimiter-based splits.

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

Split Column by Delimiter.

The 'Split Column by Delimiter' transformation in Power Query is specifically designed to divide a single text column into multiple columns based on a specified delimiter, such as a space. In this scenario, selecting the column 'FullName' and using 'Split Column > By Delimiter' with a space delimiter will correctly separate 'John Doe' into 'FirstName' (John) and 'LastName' (Doe). This is the standard approach for parsing delimited text within Power Query.

Answer analysis

Option-by-option breakdown

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

  • Split Column by Delimiter.

    Why this is correct

    Splits a column into multiple columns based on a delimiter.

  • Merge Columns.

    Why it's wrong here

    Merge combines columns, not splits.

  • Extract Text.

    Why it's wrong here

    Extract is for extracting characters from the beginning or end.

  • Replace Values.

    Why it's wrong here

    Replace Values substitutes text, not splits.

About these practice questions

This PL-300 question is part of Courseiva's 217-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

2 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 using Power Query to transform a column 'FullName' containing values like 'Smith, John'. You need to split this into 'LastName' and 'FirstName' columns. Which THREE steps are required?

medium
  • A.Unpivot columns
  • B.Use 'Split Column' by delimiter
  • C.Trim leading/trailing spaces from new columns
  • D.Merge the split columns back
  • E.Rename the new columns to LastName and FirstName

Why B: To split 'FullName' (e.g., 'Smith, John') into 'LastName' and 'FirstName' columns in Power Query, three steps are required. First, select the column and use 'Split Column' by delimiter (comma) – this creates two columns with the split values. Second, trim any leading/trailing spaces from the new columns (the delimiter might leave spaces). Third, rename the resulting columns to 'LastName' and 'FirstName'. Option A (Unpivot) is incorrect because unpivot transforms columns into rows, not split values. Option D (Merge) is the opposite of splitting and would combine columns. Therefore, the correct three steps are B, C, and E.

Variation 2. You are preparing data for a Power BI report. The source data contains a column 'FullName' with values like 'John Doe'. You need to split this column into 'FirstName' and 'LastName' using Power Query. The transformation should be repeatable and not dependent on the number of spaces. What is the best approach?

medium
  • A.Use 'Split Column by Number of Characters' with a fixed position.
  • B.Use 'Split Column by Delimiter' and choose 'Right-most delimiter'.
  • C.Use 'Replace Values' to replace space with a comma.
  • D.Use 'Extract Text After Delimiter' with a space.

Why B: Using 'Split Column by Delimiter' with 'Right-most delimiter' ensures that the split occurs at the last space in the FullName column, which reliably separates the first name from the last name even if there are multiple spaces (e.g., 'John Michael Doe' would yield 'John Michael' as FirstName and 'Doe' as LastName). This approach is repeatable and does not depend on a fixed number of spaces, making it robust for varying name formats.

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

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.