Mitchell Pearson explores a powerful yet often overlooked feature in Power BI’s Power Query Editor: the ability to split a single column into multiple rows. This technique is especially useful when dealing with data that has been compressed into a single row but needs to be normalized for analysis.
Many users are familiar with splitting columns by delimiters, but splitting into rows can be a game-changer for data transformation. Mitchell demonstrates how to handle this using both the graphical user interface (GUI) and M code, providing flexibility for users of all skill levels.
The example used involves a transaction record where multiple salespeople are listed in a single cell. The goal is to create one row per salesperson per transaction.
Mitchell emphasizes the importance of recognizing hidden characters like carriage returns and line feeds, which can disrupt data parsing. He recommends using tools like Notepad++ to visualize these characters when troubleshooting.
For users comfortable with scripting, Mitchell demonstrates how to achieve the same result using M code:
Text.Split
function.";"
and "#(lf)"
for line feed).Don't forget to check out the Pragmatic Works' on-demand learning platform for more insightful content and training sessions on Power Query and other Microsoft applications. Be sure to subscribe to the Pragmatic Works YouTube channel to stay up-to-date on the latest tips and tricks.