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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
oysteina
New Member

Split String with other field data as delimiter

Hi,

I'm new to Power BI, and has been tasked to move our reports from Qlikview. I've come across an issue I'm not successful in Googeling the answer to. In our database, the information of Vehicle Maintenance is stored like this:

Vehicle                     Maintenance
A-1A-11
A-1A-12
A-1A-13
B-34B-341
B-34B-342
234586423458641
234586423458642
234586423458643
34-32134-3211
34-32134-3212

The Maintenance field contains Vehicle ID&Maintenance.

 

What I would like is to get this out in the report:

Vehicle                     Maintenance
A-11
A-12
A-13
B-341
B-342
23458641
23458642
23458643
34-3211
34-3212

 

In Qlikview, I use the Vehicle field as delimiter, and retrieve the second part of the string.

How is this possible i Power BI?

 

Br,

Øystein Andresen

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

You can do this in Power Query. Insert a step like

= Table.AddColumn( #"Changed Type", "Maintenance ID", each Text.Replace( [Maintenance], [Vehicle],"") )

and then you can delete the original Maintenance column if you don't need it for anything else 

View solution in original post

4 REPLIES 4
johnt75
Super User
Super User

You can do this in Power Query. Insert a step like

= Table.AddColumn( #"Changed Type", "Maintenance ID", each Text.Replace( [Maintenance], [Vehicle],"") )

and then you can delete the original Maintenance column if you don't need it for anything else 

Hi,

Thanks for the reply!

I will try this solution now. 🙂

 

Br,

Øystein

Anonymous
Not applicable

@oysteina 

Do you want it as a measure or calculated column?

Hi,

thanks for the reply. I have to admit I'm not sure. I would guess a calculated column.

I need it to work also when the maintenance number exceeds 10.

 

Br,

Øystein

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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.