Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
lastnn30
Post Patron
Post Patron

Separate a number formatted as a text but keep the leading 0s

Hi

I have text like this one

 

A1210-0422

B1211-0011

 

I want to separate into 2 columns like this

 

A1210    0422

B1211    0011

 

I used Power Query (Split/Delimiter -) but the problem I would have this

 

A121      422

B1211    11

 

It wont add 0 infront of the numbers. How can I fix that? Thank you very much.

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

It looks like there is an additional type conversion going on.  Sometimes this gets added automatically.

If there is, you can edit/remove that step.  If not, post the Advanced Editor code and I'll have a look.

View solution in original post

1 REPLY 1
HotChilli
Super User
Super User

It looks like there is an additional type conversion going on.  Sometimes this gets added automatically.

If there is, you can edit/remove that step.  If not, post the Advanced Editor code and I'll have a look.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.