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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
JamesGordon
Helper II
Helper II

Ignore/remove text from column

Hi,

 

I have a column of stock numbers that range from 10000000 to 80000000 however there is the odd entry that contains text. Id like to create a dax that would create a new column that only display the stock numbers and therefore ignores the text?

 

Screenshot below of result from current column

Power Bi ques 15.jpg

 

Thank you for your help!

3 REPLIES 3
Anonymous
Not applicable

To create a custom column as below.

 

Text.Select([Stock Number], {"0".."9"})

 

Refer this post

https://community.powerbi.com/t5/Power-Query/Remove-Text-from-Specific-Column/m-p/829119

 

Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar

If I resolve your problem Mark it as a solution and give kudos.
 

@Anonymous  is this using power query not DAX though?

 

I am trying to use DAX to solve this?

Anonymous
Not applicable

It's recommended to use Power query for column creatation. IF not possible then only go for dax.

 

Read this article

 

https://www.sqlbi.com/articles/comparing-dax-calculated-columns-with-power-query-computed-columns/

 

Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar

If I resolve your problem Mark it as a solution and give kudos.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.

Top Solution Authors