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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors