Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
Thank you for your help!
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?
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.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
18 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
23 | |
10 | |
10 | |
9 | |
7 |