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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Ludvig
Frequent Visitor

Delete text from coulumn with both int and text in it

Hi!

I have a simple, but as it seems, hard problem for me to solve. As you can see in the pictrue so what i want to do is just to get rid of the "Sum=" but still have the value left, so the column should be [ 907; 22; 929] in this example, i have tried the M-code as you can see but it throws error regarding the problem of convertion from the values to Text. I will use these column as whole numbers and do some calculations on them.

 

Thanks in advance for all the help!

 

original table.PNGM-code.PNGproblem araising.PNG

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @Ludvig ,

 

Try this::

Number.From(
    Text.Select(
        Text.From([Alla arenden]),
        {"0".."9"}
    )
)

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

2 REPLIES 2
BA_Pete
Super User
Super User

Hi @Ludvig ,

 

Try this::

Number.From(
    Text.Select(
        Text.From([Alla arenden]),
        {"0".."9"}
    )
)

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Works like a dream! Thanks @BA_Pete my life just got a bit easier 😀

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.

Top Solution Authors