Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I am loading a data field called UserField5 that contains these values - M, C or F. During the data load I would like to rename these values as follows:
What is the best way to achieve this during data load?
Thanks
Hi. You can use function Match.
data:
NoConcatenate
Load
If(Match('M',UserField5),'Materials',
If(Match('C',UserField5),'Consumables','Live'))
as new_field;
Load * Inline [
UserField5
M
C
F
]
Hi
Try this
If(trim(UserField5) = 'M','Materials',
If(trim(UserField5)='C','Consumables','Live')) as UserField5;
OR
if you have others
If(trim(UserField5) = 'M','Materials',
If(trim(UserField5)='C','Consumables',
If(trim(UserField5)='F','Live',Others')) as UserField5;
replace the UserField5
if you want it as new column rename the name you want
Hope this helps
Thanks