This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
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 April 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.