Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
makarama
Frequent Visitor

Split column based on a regular expression pattern

I have a column where each row follows this format:

 

Requested For = Joe
Service = Coffee
Class = Espresso
Type of Request = Replace Coffee Machine
Describe the Request = Coffee Machine needs to be replaced
Request Number = 1213123
Further Comments =

 

I want to split this into multiple columns as follows (see table below). Do you know how can this be achieved?

I tried splitting by the "=" sign but when I do that it creates columns with values like "Replace Coffee Machine Describe the Request" which is not what I want. Thanks

 

 

Requested ForServiceClassType of RequestDescribe the RequestRequest Number

Further Comments

JoeCoffeeEspressoReplace Coffee MachineCoffee Machine needs to be replaced1213123

 

2 REPLIES 2
Anonymous
Not applicable

Hi @makarama ,

 

Here are the steps you can follow:

1. In power query – Transform – Split column – Custom  --  =.

vyangliumsft_0-1680509770671.png

Result:

vyangliumsft_1-1680509770672.png

2. Select [Column.1] – Transform – Pivot Column – [Column2] — Don’t Aggregate.

vyangliumsft_0-1680509822949.png

3. Result:

vyangliumsft_1-1680509827600.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Thanks for your time but the input data you used in your example is not what I have. This part:

 

Requested For = Joe
Service = Coffee
Class = Espresso
Type of Request = Replace Coffee Machine
Describe the Request = Coffee Machine needs to be replaced
Request Number = 1213123
Further Comments =

 

is a single string. A single data point in the matrix. It does not span across multiple rows.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.