Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Add – sign in value on specefic place Power bi/Power query

I have a column in PowerBi namend X-rates. The value in the column is for example X00360. I want to change that value to X-00360. So after the X i need "-" sign.

In Excel i used iferror(CONCATENATE(left(O2;1));"-";right(O2;lenght(O2)-1));"")
but how to do this in powerquery?

X-rates (current) X-ratesNew (expected)
 X00360            X-00360

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

enter image description here

Add a new column and type in

Text.Start([#"X-rates (current) "],1) & "-" & Text.Middle([#"X-rates (current) "], 1)

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading