Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
nareshthavidishetty
Creator III
Creator III

Renaming field value in script

Hi,

How to rename field value in script level.

Field: HPTOX

Value with in field : Electric

Here i need to rename Electric into Electric\GE

Thanks..

1 Solution

Accepted Solutions
Aurelien_Martinez
Partner - Specialist II
Partner - Specialist II

Hi,

Load

  Pick(Match(HPTOX, 'Electric')+1, HPTOX, 'Electric\GE') as HPTOX

[..]

OR

you can use mapping load / applymap function

Aurélien

Help users find answers! Don't forget to mark a solution that worked for you!

View solution in original post

2 Replies
Aurelien_Martinez
Partner - Specialist II
Partner - Specialist II

Hi,

Load

  Pick(Match(HPTOX, 'Electric')+1, HPTOX, 'Electric\GE') as HPTOX

[..]

OR

you can use mapping load / applymap function

Aurélien

Help users find answers! Don't forget to mark a solution that worked for you!
nareshthavidishetty
Creator III
Creator III
Author

Hi,

I have the got the answer with the below logic as well.

if(left(HPTOX,8)='Electric','Electic\GE',HPTOX) as HPTOX

Thanks..