Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
andrpfist
Partner - Contributor
Partner - Contributor

Script - Subfield and preceding Load

I'm using subfield to split several strings. To have a better overview of the process I splited the script in several preceding loads and was wondering why I get different result compared to a "resident load". Does anyone has a explanation for the following behaviour:

 

Result Preceding Script:

andrpfist_1-1649744428441.png

 

andrpfist_0-1649744367115.png

 

Result with Resident Load:

andrpfist_3-1649744490383.png

 

andrpfist_2-1649744478298.png

Why do I not get the same results?

Or is the answer just: WAD?

 

Thanks for any help.

/Andi

 

Labels (2)
1 Reply
hic
Former Employee
Former Employee

This may well be a bug. The first example returns an incorrect result. We (Qlik) will investigate.

However, you can use multiple SubField:s in the same load. The following returns a correct result:

Load
SubField(FieldB,'|') as FieldB1,
SubField(FieldA,'|') as FieldA1,
*
Inline
[FieldA, FieldB
Value1|Value2, 3100|3101|3105|3110
Value1|Value2, 3100|3101|3105|3110 ];