Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

split Field into FeildValues in Script

hi,

Is there any possibility to split the Field in script into Field values to rename them Ie., I am loading the data from excel sheet where Feild

is identifier consists like below attachment.But i want to rename them as A for 1st record, B for 2nd and so on how to do.

I have read some post on this subject without to find a solution understandable for me.

thanks in advance.

14 Replies
Not applicable
Author

thanks a lot  it is working

MindaugasBacius
Partner - Specialist III
Partner - Specialist III

map_identifier:

Mapping LOAD * INLINE [

    F1, F2

    2.16.840.1.114416.1.24.132565, A

    2.16.840.1.114416.1.24.132574, B

];

Data:

LOAD Identifier

  ,ApplyMap('map_identifier', Identifier, ':') as Type

INLINE [

    Identifier

    2.16.840.1.114416.1.24.132565

  2.16.840.1.114416.1.24.132574

  2.16.840.1.114416.1.24.132586

  2.16.840.1.114416.1.24.132590

  2.16.840.1.114416.1.24.1382597

  2.16.840.1.114416.1.24.1382622

];

The result:

Screenshot_2.jpg

Not applicable
Author

thanks a lot it is helpfull

oknotsen
Master III
Master III

If your question is now answered, please flag the Correct Answer.

If not, please let us know what part of this topic you still need help with .

May you live in interesting times!
Kushal_Chawda

another way

Data: 

LOAD *,

          Pick(match(Identifier ,'2.16.840.1.114416.1.24.132565','2.16.840.1.114416.1.24.132574'),'A','B') as Type

INLINE [ 

    Identifier 

    2.16.840.1.114416.1.24.132565 

  2.16.840.1.114416.1.24.132574 

  2.16.840.1.114416.1.24.132586 

  2.16.840.1.114416.1.24.132590 

  2.16.840.1.114416.1.24.1382597 

  2.16.840.1.114416.1.24.1382622 

];