What if you could fix messy data in seconds instead of hours?
Why Splitting and merging columns in Power BI? - Purpose & Use Cases
Imagine you have a big spreadsheet where names and emails are all mixed in one column, or addresses are split across several columns. You need to separate or combine these to make sense of the data.
Doing this by hand means copying, pasting, and typing over and over. It's slow, easy to make mistakes, and if the data changes, you have to start all over again.
Splitting and merging columns in Power BI lets you quickly break apart or join data automatically. It saves time, reduces errors, and updates instantly when your data changes.
Copy column -> Paste in new column -> Manually delete unwanted partsSplit Column by Delimiter -> Merge Columns with SeparatorYou can clean and reshape your data effortlessly, making your reports clearer and more useful.
A sales manager receives a list where customer full names and phone numbers are in one column. Using splitting, they separate names and numbers to analyze customer calls and sales separately.
Manual splitting and merging is slow and error-prone.
Power BI automates these tasks with simple clicks.
This makes data cleaning faster and reports more accurate.
Practice
Splitting means:Solution
Step 1: Understand the meaning of splitting
Splitting means dividing one column into several columns based on a delimiter or rule.Step 2: Compare with other options
Joining columns is merging, deleting is removing, and changing data type is different from splitting.Final Answer:
Breaking one column into multiple columns based on a rule -> Option AQuick Check:
Splitting = Breaking column into parts [OK]
- Confusing splitting with merging
- Thinking splitting deletes columns
- Mixing splitting with data type changes
FirstName and LastName with a space separator in Power Query?Solution
Step 1: Identify merging syntax in Power Query
Merging columns uses Table.AddColumn with an expression combining columns using & and a separator.Step 2: Check each option
Table.AddColumn(Source, "FullName", each [FirstName] & " " & [LastName]) correctly concatenates FirstName and LastName with a space. Table.RemoveColumns removes columns, Table.SplitColumn splits columns, Table.TransformColumnTypes changes data types.Final Answer:
Table.AddColumn(Source, "FullName", each [FirstName] & " " & [LastName]) -> Option CQuick Check:
Merge = AddColumn with & [OK]
- Using SplitColumn instead of AddColumn for merging
- Forgetting the space separator
- Removing columns instead of merging
FullName with values like "John Doe", what will be the result of this Power Query step?Table.SplitColumn(Source, "FullName", Splitter.SplitTextByDelimiter(" "), {"FirstName", "LastName"})Solution
Step 1: Understand SplitColumn with delimiter
This function splits the FullName column by space into two columns named FirstName and LastName.Step 2: Check other options
A single column with names joined by space is merging, not splitting. An error because SplitColumn needs a number of columns is incorrect because specifying new column names is valid. The FullName column deleted from the table is false; the original column is replaced by new columns.Final Answer:
Two new columns named FirstName and LastName with split parts -> Option AQuick Check:
SplitColumn with delimiter creates multiple columns [OK]
- Thinking SplitColumn merges columns
- Assuming original column remains unchanged
- Believing it causes an error without column count
City and Country using this code:Table.AddColumn(Source, "Location", each [City] + ", " + [Country])
But you get an error. What is the likely cause?
Solution
Step 1: Check concatenation operator in Power Query
Power Query uses & to join text, not + which causes an error.Step 2: Review other options
Missing space after comma is not an error, AddColumn can merge columns, and case sensitivity depends on source but usually not error here.Final Answer:
Using + operator instead of & for text concatenation -> Option BQuick Check:
Use & for text join, not + [OK]
- Using + instead of & for text
- Assuming AddColumn can't merge
- Ignoring case sensitivity issues
Address with values like "123 Main St, Springfield, IL". You want to split it into Street, City, and State columns. Which Power Query step correctly splits this?Solution
Step 1: Identify correct delimiter and split method
The address uses ", " as delimiter, so SplitTextByDelimiter with ", " is correct to split into three columns.Step 2: Evaluate other options
Table.AddColumn(Source, "Street", each Text.BeforeDelimiter([Address], ", ")) only extracts Street, not full split. Table.SplitColumn(Source, "Address", Splitter.SplitTextByEachDelimiter({","}), {"Street", "City", "State"}) uses SplitTextByEachDelimiter with wrong delimiter format. Table.TransformColumns(Source, {"Address", each Text.Split(_, ", ")}) splits but does not create separate columns.Final Answer:
Table.SplitColumn(Source, "Address", Splitter.SplitTextByDelimiter(", "), {"Street", "City", "State"}) -> Option DQuick Check:
SplitColumn with correct delimiter and column names [OK]
- Using wrong delimiter like comma without space
- Extracting only one part instead of splitting all
- Not naming new columns after split
Ready to prove it?
Pass the test and this pattern moves unknown
