<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Issue with Function &amp;gt;SubField&amp;lt; - what the heck is happening? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Issue-with-Function-gt-SubField-lt-what-the-heck-is-happening/m-p/2019583#M84191</link>
    <description>&lt;P&gt;Many thanks - that's it&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you both a lot for taking your time and supporting me on this issue! Really appreciate &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Dec 2022 08:45:04 GMT</pubDate>
    <dc:creator>BjoernWollny</dc:creator>
    <dc:date>2022-12-23T08:45:04Z</dc:date>
    <item>
      <title>Issue with Function &gt;SubField&lt; - what the heck is happening?</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Function-gt-SubField-lt-what-the-heck-is-happening/m-p/2019276#M84174</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am totally lost. Often I used SubField function and it always worked as it was supposed to be. But this time I do not have any idea, why I won't get the expected results.&lt;BR /&gt;&lt;BR /&gt;I have a field that is seperated by &lt;EM&gt;'-'&lt;/EM&gt;.&amp;nbsp;I am especially interested in the &lt;STRONG&gt;fifth&lt;/STRONG&gt; subfield, so I am using formula&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SubField(Field, '-', 5) as SubField5&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Field value is in this example (screenshot below) '&lt;EM&gt;DE-1110-F-CF-00E75-07'&lt;/EM&gt; so I expect as result from this formula &lt;EM&gt;'00E75'&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;But as you can see, the function returns&lt;EM&gt; '00'&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BjoernWollny_0-1671705320368.png" style="width: 841px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/96754i751FC8A0D0CD274A/image-dimensions/841x103?v=v2" width="841" height="103" role="button" title="BjoernWollny_0-1671705320368.png" alt="BjoernWollny_0-1671705320368.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I tried to recreate the formula as Dimension, but still it shows '00'&amp;nbsp;&lt;BR /&gt;Very strange is, that function is working, when I am using a measure - eventhough there is just one entry for this dataset as you can see from the count (last column).&lt;BR /&gt;So honestly I am totally lost, why function in script is not working properly.&lt;BR /&gt;&lt;BR /&gt;The laod script is very straight forward:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Load	
    rowno() as RowID,
    ILOAN as SourceID,
    TPLNR as Field,
    SubField(TPLNR, '-', 3) as SubField3,
    SubField(TPLNR, '-', 4) as SubField4,
    SubField(TPLNR, '-', 5) as SubField5
FROM [lib://*****/ILOA.qvd]
(qvd);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Do you have any idea, about the source of this issue and maybe how to fix it? What could have gone wrong?&lt;BR /&gt;&lt;BR /&gt;Really appreciate your support and many thanks in advance for feedback &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 10:46:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Function-gt-SubField-lt-what-the-heck-is-happening/m-p/2019276#M84174</guid>
      <dc:creator>BjoernWollny</dc:creator>
      <dc:date>2022-12-22T10:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Function &gt;SubField&lt; - what the heck is happening?</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Function-gt-SubField-lt-what-the-heck-is-happening/m-p/2019397#M84181</link>
      <description>&lt;P&gt;I duplicated your load and didn't encounter an issue using inline:&lt;/P&gt;
&lt;P&gt;data:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;PK, data&lt;BR /&gt;A1, DE-1110-F-CF-00E75-07&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Left Join (data)&lt;BR /&gt;Load PK,&lt;BR /&gt;rowno() as RowID,&lt;BR /&gt;'ILOAN' as SourceID,&lt;BR /&gt;'TPLNR' as Field,&lt;BR /&gt;SubField(data, '-', 3) as SubField3,&lt;BR /&gt;SubField(data, '-', 4) as SubField4,&lt;BR /&gt;SubField(data, '-', 5) as SubField5&lt;BR /&gt;Resident data;&lt;/P&gt;
&lt;P&gt;That confirms the function works in Sense but not an answer to your issue.&lt;/P&gt;
&lt;P&gt;How does that specific value look like in the QVD? Might be a load error and that a different token is in the qvd?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 15:04:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Function-gt-SubField-lt-what-the-heck-is-happening/m-p/2019397#M84181</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2022-12-22T15:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Function &gt;SubField&lt; - what the heck is happening?</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Function-gt-SubField-lt-what-the-heck-is-happening/m-p/2019485#M84187</link>
      <description>&lt;P&gt;I guess your subfield is interpreted as number in exponential notation while there had already been loaded another zero value (with format 00) before the one in question.&lt;BR /&gt;Try using&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Text(SubField(TPLNR, '-', 5)) as SubField5&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;instead.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 22:25:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Function-gt-SubField-lt-what-the-heck-is-happening/m-p/2019485#M84187</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-12-22T22:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Function &gt;SubField&lt; - what the heck is happening?</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Function-gt-SubField-lt-what-the-heck-is-happening/m-p/2019497#M84188</link>
      <description>&lt;P&gt;one example to illustrate:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarcoWedel_0-1671748932762.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/96797iE1AE6BBAC29DF12F/image-size/large?v=v2&amp;amp;px=999" role="button" title="MarcoWedel_0-1671748932762.png" alt="MarcoWedel_0-1671748932762.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;table1:
Load	
    rowno() as RowID,
    ILOAN as SourceID,
    TPLNR as Field,
    SubField(TPLNR, '-', 3) as SubField3,
    SubField(TPLNR, '-', 4) as SubField4,
    SubField(TPLNR, '-', 5) as SubField5,
    If(IsText(SubField(TPLNR, '-', 5)),'IsText',If(IsNum(SubField(TPLNR, '-', 5)),'IsNumber')) as TextOrNumber,
    Text(SubField(TPLNR, '-', 5)) as SubField5Text
Inline [
ILOAN, TPLNR
ILOAN1, DE-1110-F-CF-00-07
ILOAN2, DE-1110-F-CF-00A75-07
ILOAN3, DE-1110-F-CF-00E75-07
ILOAN4, EF-1111-G-DG-00F75-08
ILOAN5, FG-1112-H-EH-00G75-09
ILOAN6, GH-1113-I-FI-00I75-10
];&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 22:50:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Function-gt-SubField-lt-what-the-heck-is-happening/m-p/2019497#M84188</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-12-22T22:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Function &gt;SubField&lt; - what the heck is happening?</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Function-gt-SubField-lt-what-the-heck-is-happening/m-p/2019583#M84191</link>
      <description>&lt;P&gt;Many thanks - that's it&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you both a lot for taking your time and supporting me on this issue! Really appreciate &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2022 08:45:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Function-gt-SubField-lt-what-the-heck-is-happening/m-p/2019583#M84191</guid>
      <dc:creator>BjoernWollny</dc:creator>
      <dc:date>2022-12-23T08:45:04Z</dc:date>
    </item>
  </channel>
</rss>

