Skip to main content
Announcements
[WEBINAR] Accenture & Qlik: Accelerating BI Migration to SaaS with Qlik on Dec 13th: REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
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
Master III
Master III

try this

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

View solution in original post

5 Replies
arulsettu
Master III
Master III

try this

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

antoniotiman
Master III
Master III

Try

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

PrashantSangle

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
Author

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

Not applicable
Author

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);