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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register 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.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.