Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I have a column of alphanumeric tracking numbers set to text. There are leading zeros and I would like create a new column that does not include the leading zeros. The tacking numbers cover various formats and length so there is no consistent amount of leading zeros. Any guidance would be greatly appreciated.
Solved! Go to Solution.
Text.TrimStart([Invoice Number], "0")
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
@CNENFRNL has provided an elegant solution to your request.
Here is a useful post should your scenario get more complex. [https://www.excelguru.ca/blog/2015/11/19/keep-only-numbers-in-power-query/]
Have I solved your problem? Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;). |
Text.TrimStart([Invoice Number], "0")
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |