Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
renuka_sasikumar
Creator III
Creator III

Separate

Hi,

I have a data

Table A:

Data

A

B

C

DDDD

And now I want the output as

Data

A

B

C

D

D

D

D

Is this possible?

Can anyone help me.

1 Solution

Accepted Solutions
ogautier62
Specialist II
Specialist II

Hi,

something like this :

tableB:

load mid(Data,iterno(),1) as 'newfield' resident tableA while iterno()<= len(Data)

regards

View solution in original post

4 Replies
datanibbler
Champion
Champion

Hi Renuka,

I think Subfield is the function you want - look it up in the helpfile, one of its uses is to separate strings into several records. You might have to load the rest first and do that separating part in a separate load - you'll have to try it out a bit.

HTH

Best regards,

DataNibbler

ogautier62
Specialist II
Specialist II

Hi,

something like this :

tableB:

load mid(Data,iterno(),1) as 'newfield' resident tableA while iterno()<= len(Data)

regards

Anonymous
Not applicable

Hi!

Use this:

LOAD

    Data,

    SubField(Data,' ') as test

FROM [lib://Community/308076.xlsx]

(ooxml, embedded labels, table is Sheet1);

renuka_sasikumar
Creator III
Creator III
Author

Hi,

Thanks for your reply, but your query gives the same output.

I got the answer see the below one

Temp:
LOAD * Inline
[
Data
A
B
C
DDDD
]
;


Temp1:
load
Mid(Data,iterno(),1) as 'newfield'
Resident Temp
while iterno()<= len(Data);

Drop Table Temp;