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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
lastnn30
Post Patron
Post Patron

seprate number with - (dashes) using power query

Hi

I have a number like this 123456789. Can I use power query only (no formula) to trasfer it to 123-456-789. Thank you very much for the help in advance.

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

Here is one clickety-click way

convert.gif

If you need the orignal also, just duplicate the original column before applying the steps

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

7 REPLIES 7
PaulDBrown
Community Champion
Community Champion

Here is one clickety-click way

convert.gif

If you need the orignal also, just duplicate the original column before applying the steps

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Amazing demo, thank you so much all of you. 

Hi @PaulDBrown ! Pretty nice demonstration 🙂 Can you tell me which program did you use to record it ?

Sure!

https://www.screentogif.com/ 

Downloadable





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Thank you so much!

NishPatel
Resolver II
Resolver II

In Power Query, Select the number column and select "Split Column" By Positions and enter 3 as number of characters. This will split the number into three columns. Then create custom column and enter formula "Number.ToText([Column1])&"-"&Number.ToText([Column2])&"-"&Number.ToText([Column3]). This will give you your desired result 123-456-789.

JorgePinho
Solution Sage
Solution Sage

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.