Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register 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.
@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.
User | Count |
---|---|
84 | |
77 | |
69 | |
46 | |
41 |
User | Count |
---|---|
106 | |
50 | |
49 | |
40 | |
39 |