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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
ebecerra
Microsoft Employee
Microsoft Employee

Creating a table from another table's column based on a regular expression

Hi everyone, this is the problem I have. I have this table with a column with some "string" that I need to split into different rows based on a regex. Let me show you what I mean.

 

I have this table that has an Info column with a string that has a tag and a number associated with it. There is always a string and then a number next to it.

DateInfo
6/14/2019TA56TB54VZ2
6/13/2019TA2TB21FD5SL32PPR1

 

And I would like to create a new table with the Info column to expand it and look like this:

DateTAG       VALUE
6/14/2019TA     56
6/14/2019TB     54
6/14/2019VZ     2
6/13/2019TA     2
6/13/2019TB     21
6/13/2019FD       5
6/13/2019SL         32
6/13/2019PPR 1

 

Is this something possible in PBI? If so, could you point me to the right direction on how to do this please?

 

Thanks!

 

 

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

Hello @ebecerra ,

You can load the data into PowerQuery then use the Split Column by DigitToNonDigit and then Unpivot then Split Column by NonDigitToDigit.  I put together a quick video showing the steps:

View solution in original post

2 REPLIES 2
jdbuchanan71
Super User
Super User

Hello @ebecerra ,

You can load the data into PowerQuery then use the Split Column by DigitToNonDigit and then Unpivot then Split Column by NonDigitToDigit.  I put together a quick video showing the steps:

OMG Thank you @jdbuchanan71! You're brilliant!

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.