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: 
Not applicable

Using SubField in LOAD

Hi, I have this:

SET CenterType='Type1;Type2;Type3;Type4;Type5;Type6;Type7';

And then, I make a LOAD:

[ABC_XYZ]:

LOAD

     @1 as xYear,

     @2 as xMonth,

     @3 as xDay,

      SubField($(CenterType),';',Left(@4,1)) as TypeData

          FROM

      ABC.qvw.log

          (txt, codepage is 1252, no labels, delimiter is spaces, msq)

;

But the 'SubFields' don't work.

Thanks.

1 Solution

Accepted Solutions
fosuzuki
Partner - Specialist III
Partner - Specialist III

Try:

SubField('$(CenterType)',';',Left(@4,1)) as TypeData

Does Left(@4,1) return a numeric value?

Hope this helps

Fernando

View solution in original post

2 Replies
fosuzuki
Partner - Specialist III
Partner - Specialist III

Try:

SubField('$(CenterType)',';',Left(@4,1)) as TypeData

Does Left(@4,1) return a numeric value?

Hope this helps

Fernando

Not applicable
Author

That´s perfect !!.Thank you Fernando.