Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

To Load separate records for columns with multiple values

Hi All !

Facing an issue, having multiple values in one column separated by semicolon, but I need to have separate records for individual values .

Current Data format :

Current Scenaraio
PROJECT_NAMEREQ_IDRQ_TARGET
MMR2055;77;84;
MMR2056;55;91;98;

But I require the data in below format :

Required Scenaraio
PROJECT_NAMEREQ_IDRQ_TARGET
MMR205577
MMR205584
MMR205655
MMR205691
MMR205698

So can anyone help in resolving this issue as I am a beginner in Qlikview !

Thanks,
Pratik

1 Solution

Accepted Solutions
ashfaq_haseeb
Champion III
Champion III

Try Below

Temp:

Load *,subfield(RQ_TARGET,';') as New_RQ_TARGET;

load * Inline

[

PROJECT_NAME,REQ_ID,RQ_TARGET

MMR,2055,;77;84;

MMR,2056,;55;91;98;

]

;

NoConcatenate

Main:

Load

PROJECT_NAME,

REQ_ID,

New_RQ_TARGET

Resident Temp

Where len(New_RQ_TARGET)>0;

drop Table Temp;

Regards

ASHFAQ

View solution in original post

6 Replies
tresesco
MVP
MVP

User SubField() like:

Load    

      *,

     SubField(RQ_TARGET, ';') as NewRQ_TARGET

From <>;

Anonymous
Not applicable
Author

You can use subfield()-function like this:

subfield(RQ_TARGET,';') as RQ_TARGET

ashfaq_haseeb
Champion III
Champion III

Hi,

Try below

Load *,subfield(RQ_TARGET,';') as New_RQ_TARGET;

load * Inline

[

PROJECT_NAME,REQ_ID,RQ_TARGET

MMR,2055,;77;84;

MMR,2056,;55;91;98;

]

Regards

ASHFAQ

Not applicable
Author

Thanks Tresesco for the quick response !

I tried subfield, so how to omit the old records , I mean I am getting this as O/P :

PROJECT_NAMEREQ_IDRQ_TARGETNewRQ_TARGET
MMR2055;77;84; don't want this record
MMR2055;77;84;77
MMR2055;77;84;84
MMR2056;55;91;98;  don't want this record
MMR2056;55;91;98;55
MMR2056;55;91;98;91
MMR2056;55;91;98;98

So how can I get only 5 records in O/P ?

Thanks,

Pratik

ashfaq_haseeb
Champion III
Champion III

Try Below

Temp:

Load *,subfield(RQ_TARGET,';') as New_RQ_TARGET;

load * Inline

[

PROJECT_NAME,REQ_ID,RQ_TARGET

MMR,2055,;77;84;

MMR,2056,;55;91;98;

]

;

NoConcatenate

Main:

Load

PROJECT_NAME,

REQ_ID,

New_RQ_TARGET

Resident Temp

Where len(New_RQ_TARGET)>0;

drop Table Temp;

Regards

ASHFAQ

tresesco
MVP
MVP

If the first character is always a ';' , you can simply purge that one and try like:

Load

          Subfield( Mid(RQ_TARGET, 2) , ';') as NewRQ_TARGET