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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.