This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Good afternoon.
I originally attempted to trim the Zeros but it trims all the zeros and leaves it blank. I can just trim the 1st character becuase of numbers over 10 and ones that begin with letters. Anyone have tips on If number starts with a zero trim 1 space otherwise ignore?
I have thousands of rows that look a bit like this:
| Rev |
| 00 |
| 01 |
| 02 |
| 03 |
| 04 |
| 10 |
| 12 |
| 15 |
| A |
| B |
| C |
| D |
I need it too look like:
| Rev |
| 0 |
| 1 |
| 2 |
| 3 |
| 4 |
| 10 |
| 12 |
| 15 |
| A |
| B |
| C |
| D |
Solved! Go to Solution.
Try this in Power Query as a custom column:
if Text.StartsWith([YourColumn], "0") then Text.RemoveRange([YourColumn], 0, 1) else [YourColumn]
That checks if the value starts with a zero and removes just the first character if so, otherwise leaves it alone. Works fine for "Rev", "A", "10", etc.
Try this in Power Query as a custom column:
if Text.StartsWith([YourColumn], "0") then Text.RemoveRange([YourColumn], 0, 1) else [YourColumn]
That checks if the value starts with a zero and removes just the first character if so, otherwise leaves it alone. Works fine for "Rev", "A", "10", etc.
Fantastic! Thank you!
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 4 | |
| 3 | |
| 3 |