March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi All
I have a field = SOURCE , The value label have TI , TS
I like to replace TI with TT and TS with SS
My PBI file :-
Paul
Solved! Go to Solution.
Hi @admin11 ,
Here are the steps you can follow:
1. Create calculated column.
Column =
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE('Table'[Column1],"TA","A"),
"TP","B"),
"TI","C"),
"TS","D")
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @admin11 ,
Here are the steps you can follow:
1. Create calculated column.
Column =
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE('Table'[Column1],"TA","A"),
"TP","B"),
"TI","C"),
"TS","D")
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @admin11 ,
Here are the steps you can follow:
1. Create calculated column.
Column 2 =
SUBSTITUTE(
SUBSTITUTE(
'Table'[Column],"TI","TT"),
"TS","SS")
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you very much for your support , your code work fine , but when i need add 2 more , again i get error , hope you can advise me how to work around .
Hi @admin11 ,
Here are the steps you can follow:
1. Create calculated column.
Column = SUBSTITUTE('Table'[SOURCE],"TI","TT")
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you very uch for your help , your code is working fine.
I also want to repalce TS with SS.
Go to power query editor and use Replace Values button from transform
@Anonymous
That field is not availabel at PQ.
Paul
I can see it ina acreenshot sent by you.
Look at the yellow highlighter.
@admin11 , Do it power query, Right click replace
https://www.youtube.com/watch?v=hkZhZbR7Kmk
@admin11 , in DAX you can use substitute
https://www.youtube.com/watch?v=y5HvChhMWbQ
substitute ([Column], "TI", "TT")
Thank you very much for your help , i get error :-
By the way i have TS want to change to SS
and TI change TT.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
90 | |
88 | |
64 | |
58 |
User | Count |
---|---|
203 | |
141 | |
107 | |
73 | |
70 |