Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have a column with text and numeric inputs. I want to add another column which returns the first letter if it starts with a letter or to return null (or 0) when it does not start with a letter. For example:
| Column | Desired Column |
| A6T4 | A |
| 4500 | null |
How can I achieve this?
Solved! Go to Solution.
@Anonymous , Sorry, Try like
Text.Select(Text.Start([Column],1), {"A".."Z"})
or
Text.Select(Text.Start([Column],1), {"A".."Z", "a".."z"})
@Anonymous , In power query a new column
if Value.Is(Text.Start([Column],1) , Int64.Type) or Value.Is(Text.Start([Column],1) , type number) then Text.Start([Column],1) else null
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.