Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi
I have data-set with around 50k Records,
ex-data
C555354 |
C555355 |
555356 |
C555357 |
C555358 |
555359 |
C555360 |
C555361 |
555363 |
C555362 |
C555364 |
C555365 |
C555366 |
555367 |
555368 |
555381 |
555382 |
I have used custom column >> TextAfterdelimiter
it is showing as error >> cannot convert number to text
I want to remove "C" from the column
Solved! Go to Solution.
Hi,
Add a Custom Column with this formula:
if Text.Start(Text.From([Column1]), 1) = "C" then
Replacer.ReplaceText([Column1], "C", "")
else
[Column1]
Regards
There are many ways to accomplish this. One way is
= Text.Replace(Text.From([Data]),"C","")
This will look like this in Advanced Editor where you can make it type number
= Table.AddColumn(Source, "Custom", each Text.Replace(Text.From([Data]),"C",""), type number)
You can also use Table.ReplaceValue
Table.ReplaceValue(Source,each [Data],each Text.Replace(Text.From([Data]),"C",""),Replacer.ReplaceValue,{"Data"})
There are many ways to accomplish this. One way is
= Text.Replace(Text.From([Data]),"C","")
This will look like this in Advanced Editor where you can make it type number
= Table.AddColumn(Source, "Custom", each Text.Replace(Text.From([Data]),"C",""), type number)
You can also use Table.ReplaceValue
Table.ReplaceValue(Source,each [Data],each Text.Replace(Text.From([Data]),"C",""),Replacer.ReplaceValue,{"Data"})
Hi,
Add a Custom Column with this formula:
if Text.Start(Text.From([Column1]), 1) = "C" then
Replacer.ReplaceText([Column1], "C", "")
else
[Column1]
Regards
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.