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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote 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
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 62 | |
| 50 | |
| 41 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 124 | |
| 109 | |
| 47 | |
| 28 | |
| 27 |