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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
trupac
Frequent Visitor

Custom format text data

Hello,

 

I have a well location that consists of numbers and text and I want to add slashes and dashes in between certain numbers, is there a way I can do this in Power Bi? I know it can be done in Excel as custom formatting but I'm struggling to custom format this as the column shows as a text data column so I can't use the custom button as its greyed out for me. 

 

Original:

100010101010W100

 

Want:

100/01-01-010-10W/100

2 ACCEPTED SOLUTIONS
Tutu_in_YYC
Super User
Super User

you may have to create a custom transformation steps in power query to convert the original column values to the desired format. Out of the box custom format like in excel is not available in power bi afaik.

View solution in original post

If the format is consistent and you can put a logic into it, you can probably transform it in power query, for example... insert a '/' at position 3 and a '-' in position 5. 

ABCDE > AB/C-DE

https://learn.microsoft.com/en-us/powerquery-m/text-functions

View solution in original post

4 REPLIES 4
Tutu_in_YYC
Super User
Super User

you may have to create a custom transformation steps in power query to convert the original column values to the desired format. Out of the box custom format like in excel is not available in power bi afaik.

Thanks for the response, can you elaborate a little more? I don't know how to do custom transformation steps in power query.

If the format is consistent and you can put a logic into it, you can probably transform it in power query, for example... insert a '/' at position 3 and a '-' in position 5. 

ABCDE > AB/C-DE

https://learn.microsoft.com/en-us/powerquery-m/text-functions

thank you!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors