Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Highlighted
Not applicable

Create field challenge

Capture.JPG

Hi all, I have an excel contains two fields, wanna create a new field when loading it into qlikview like the one shown at the below, i have thought about looping and subfield, but still fail after a couple of try. Any ideas? Thanks

1 Solution

Accepted Solutions
arulsettu
Honored Contributor III

Re: Create field challenge

try this

Replace(Center,',','|')

5 Replies
arulsettu
Honored Contributor III

Re: Create field challenge

try this

Replace(Center,',','|')

antoniotiman
Honored Contributor III

Re: Create field challenge

Try

LOAD 
SubField(City,',')&'|'&SubField(Center,',') as Key
Inline [
City,Center
'A,B','aa,bb'
'C,D','cc,yy'
'E,F','dd,zz'
]
;

Re: Create field challenge

Hi,

I am not sure what are you looking for

try this

LOAD subfield(City,',') &'|'& subfield(Center,',') as key

FROM

[key test.xlsx]

(ooxml, embedded labels, table is Sheet1);

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Not applicable

Re: Create field challenge

Hope, its too simple, no need looping, just SubField(City, ',')&'|'&SubField(Center, ',') as key

Not applicable

Re: Create field challenge

If you want to use subfield, you can try this:

Test:

Load *, City & '|' & Center as key ;

Load

Subfield(Center,',') as Center,

Subfield(City,',') as City

FROM

[.\key test.xlsx]

(ooxml, embedded labels, table is Sheet1);