Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
@Anonymous
Thank you very much for your help , it work fine now. apprecaite very much.
Paul Yeo
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.
@Anonymous
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.
@Anonymous
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 , 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.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
63 | |
62 | |
52 | |
39 | |
24 |
User | Count |
---|---|
85 | |
57 | |
45 | |
42 | |
38 |