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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ttheodoc
Frequent Visitor

Extract text from column and use it as new column

Hello,

I have the following situation. I have a table that contains a column with easily delimited values, that I would like to extract, but then use the values between parentheses as new column values.

Here is what I have:

 

ttheodoc_1-1695736419220.png

And here is what I am trying to get:

ttheodoc_3-1695736858314.png

I have tried doing this from Power Query, where I can create the columns for each type of fault, which looks like this:

ttheodoc_4-1695737111114.png

But as you can see, the column values are still the old values, whereas I want just the numbers between the parentheses. Either DAX or power query method for me would work.

 

Any tips on how to achieve this are welcome!

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

@ttheodoc Can you post your sample data as text?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler certainly:

FaultsDate
51_62.03 (1) |01/09/2023
51_62.03 (1) | 53_01.09 (1) | 53_13.04 (1) | 53_25.04 (1) | 53_33.04 (1) | 53_34.04 (1) | 53_47.04 (2) | 53_44.04 (2) | 54_42.04 (2) | 54_17.04 (1) | 54_37.04 (1) | 54_33.04 (1) | 54_57.04 (1) | 53_32.04 (1) | 53_42.04 (1) | 54_22.04 (1) | 54_41.09 (1) | 54_04.04 (3) | 54_15.04 (3) | 53_41.09 (3) | 53_31.09 (1) | 54_31.09 (1) | 54_01.09 (1) |02/09/2023
51_62.03 (1) | 53_01.09 (2) | 53_02.04 (3) | 53_25.04 (1) | 53_33.04 (3) | 53_34.04 (2) | 53_44.04 (3) | 54_42.04 (2) | 54_52.04 (2) | 54_37.04 (1) | 54_57.04 (1) | 54_19.04 (1) | 53_12.04 (1) | 53_24.04 (1) | 53_32.04 (1) | 53_23.04 (1) | 53_45.04 (2) | 54_41.09 (1) | 54_04.04 (3) | 54_15.04 (4) | 53_31.09 (1) | 53_51.09 (1) | 54_31.09 (1) |03/09/2023
51_62.03 (1) | 53_01.09 (3) | 53_25.04 (2) | 53_34.04 (4) | 53_44.04 (1) | 53_55.04 (1) | 54_02.04 (1) | 54_42.04 (1) | 54_52.04 (1) | 54_17.04 (1) | 54_37.04 (2) | 54_47.04 (2) | 54_43.04 (2) | 54_44.04 (1) | 54_57.04 (1) | 54_19.04 (1) | 53_12.04 (1) | 53_32.04 (1) | 53_42.04 (2) | 53_43.04 (1) | 53_45.04 (3) | 53_19.04 (1) | 53_07.04 (1) | 54_41.09 (3) | 54_15.04 (2) | 53_21.09 (1) | 53_11.09 (5) | 53_41.09 (3) | 54_51.09 (1) | 54_31.09 (1) |04/09/2023
51_62.03 (1) | 53_11.09 (1) | 53_31.09 (1) |05/09/2023
51_62.03 (1) | 54_11.09 (1) | 53_22.04 (1) | 53_44.04 (2) | 54_32.04 (2) | 54_17.04 (1) | 54_37.04 (1) | 53_12.04 (1) | 53_24.04 (2) | 53_42.04 (1) | 54_04.04 (1) | 53_21.09 (1) | 53_11.09 (3) | 53_41.09 (5) | 53_31.09 (1) | 53_51.09 (4) | 54_01.09 (1) |06/09/2023
51_62.03 (1) | 54_11.09 (1) | 53_34.04 (1) | 54_42.04 (1) | 54_33.04 (1) | 53_32.04 (1) | 53_42.04 (1) | 53_45.04 (3) | 53_17.04 (2) | 54_41.09 (2) | 53_11.09 (2) | 53_31.09 (2) | 54_51.09 (2) |07/09/2023
51_62.03 (1) | 54_19.04 (1) | 53_17.04 (1) |08/09/2023
51_62.03 (2) | 54_11.09 (1) | 54_12.04 (1) | 53_02.04 (1) | 53_03.04 (4) | 53_04.04 (1) | 53_37.04 (1) | 53_34.04 (1) | 53_47.04 (1) | 54_32.04 (1) | 54_37.04 (2) | 54_43.04 (1) | 53_42.04 (1) | 53_07.04 (1) | 54_41.09 (2) | 53_11.09 (4) | 53_41.09 (1) | 54_51.09 (1) | 54_21.09 (4) |09/09/2023

 

Please let me know if you need any more info!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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