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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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