Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am quite familiar with changing field names using the "as" modifier in the load script, but is it possible to rename a data point in a field within a load script (or even better - an object)? If so, how?
I.E if my field is "Fruits" and I want to rename "oRanjes" to "Oranges", is that possible without editing the underlying data?
Yes you can use replace in the load script or on the from end.
Obviously it is better to do it once in the script, but you can test it on the from end.
Also you can cascade several replace commands together.
replace(replace(replace(field,'aa','cc'),'mm','nn'),'xx','yy')
use string fuctions it may help you
capitalize( 'oRanjes')
Ah, my example was meant to be just that. I'm actually looking to entirely rename a single data value within a field, not capitalize it.
=REPLACE(Fruits, 'oRanjes', 'Oranges')
load
....
if(Fruits = "oRanjes", "Oranges", Fruits) as Fruits
also with applymap
hi , plz provide same QVW it is easy solve
thxs ,
Harish
Here you are! So let's say I want to change the value "Eggplant" to "Aubergine" - how would I do that?
The replace function will replace all occurrences of txt1 with txt2 in fieldA
replace(fieldA, 'txt1', 'txt2') as fieldA
replace(Fruits, 'Eggplant', 'Aubergine') as Fruits
So do I include that in the load statement?