Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi Guys,
Quite new with PowerBI and just wondering how i can achieve this.
I have a table where a column is existing which is telephone number, now this column is basically a text (dont wish to convert it to integer\number since there are some entries which are texts)
Basically there are some entries which starts with 0 for example. 0123456, I would like it to transform to 123456 while for entries that doesnt start with 0 to just leave it as it is.
Picture of what I would like to achieve.
I have tried to use after delimeters but it would then take out whats after the subsequent 0's.
Solved! Go to Solution.
Hi @jimmart
try to use this technique https://www.absentdata.com/power-bi/remove-leading-zeros-power-bi/ just to set data type as whole number
Thanks Guys for the suggestions @amitchandak @az38
Ultimately the one that fixed it was the link shared by @az38 thanks again guys for your help.
Hi @jimmart
try to use this technique https://www.absentdata.com/power-bi/remove-leading-zeros-power-bi/ just to set data type as whole number
Text.trim can help you in M
https://www.absentdata.com/power-bi/remove-leading-zeros-power-bi/
https://community.powerbi.com/t5/Desktop/Remove-leading-Zero-s-in-Query/td-p/247410
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
88 | |
63 |