cancel
Showing results for 
Search instead for 
Did you mean: 
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
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.