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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
lawrance
Creator II
Creator II

Splitting Row using QlikView Script

Hi All,

Please help me to split the rows by using QlikView Script.

For Example,

Source Data:

DateNameCompanyLocation
02/02/2018ABCHBK-NewXXXX
03/02/2018BCAIntern-CorpYYYY

Expected Output:

DateNameCompanyLocation
02/02/2018ABCHBKXXXX
02/02/2018ABCNewXXXX
03/02/2018BCAInternYYYY
03/02/2018BCACorp

Thanks,

Lawrance A

4 Replies
jhoef-pv
Contributor III
Contributor III

Hi,

Table1:

load

Date,

Name,

subfield(Company,'-',1) as Company,

Location

from SourceData.qvd(qvd);

Concatenate (Table1)

load

Date,

Name,

subfield(Company,'-',2) as Company,

Location

from SourceData.qvd(qvd);

vishsaggi
Champion III
Champion III

Why dont you just use this?

LOAD Date,

     Name,

     Subfield(Company, '-') AS Company,

     Location

FROM

[https://community.qlik.com/thread/291942]

(html, utf8, embedded labels, table is @1);

lawrance
Creator II
Creator II
Author

Thanks for your response.

-Lawrance A

shilpan
Partner Ambassador
Partner Ambassador

LOAD
Date,
Name,
subfield(Company, '-',1) as Company,
Location
FROM

(
ooxml, embedded labels, table is Sheet1);


LOAD
Date,
Name,
subfield(Company, '-',2) as Company,
Location
FROM

(
ooxml, embedded labels, table is Sheet1);