<?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: Subfield Manipulation problem in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Subfield-Manipulation-problem/m-p/2098448#M89946</link>
    <description>&lt;P&gt;I'm not sure what exactly you're doing here - Subfield() doesn't impact the leading zero as far as I know.&lt;/P&gt;
&lt;P&gt;Load Subfield((Field),';') as Field1&lt;BR /&gt;INLINE [ &lt;BR /&gt;Field&lt;BR /&gt;01561300008000000;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0&lt;BR /&gt;01561330008000002;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Or_0-1690714967700.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113195i72B68DE8FF62DA13/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Or_0-1690714967700.png" alt="Or_0-1690714967700.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Note that you can use Text(SubField(Field)) to force the result to be rendered as text, rather than the dynamic result you'll get by just applying SubField(). &lt;/P&gt;</description>
    <pubDate>Sun, 30 Jul 2023 11:08:53 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2023-07-30T11:08:53Z</dc:date>
    <item>
      <title>Subfield Manipulation problem</title>
      <link>https://community.qlik.com/t5/App-Development/Subfield-Manipulation-problem/m-p/2098438#M89944</link>
      <description>&lt;P&gt;Hi QlikSense community,&lt;/P&gt;
&lt;P&gt;I'm currently facing an issue with the subfield function in QlikSense. I am using subfield to separate an array into fields, but it seems that QlikSense is automatically removing leading zeros during this process. Here's an example of the data I'm working with:&lt;/P&gt;
&lt;P&gt;Original data:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;1561300008000000;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0&lt;BR /&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;1561330008000002;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;After using subfield, it becomes:&lt;/P&gt;
&lt;P&gt;1561300008666542;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0&lt;BR /&gt;1561330008666542;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;As you can see, the leading zeros are removed from the first part of the field. I attempted to fill in the leading zeros using the NUM(MyField, '00000000000000000')[17 chars required] function, but the limitation in QlikSense of 14 characters makes this approach unsuccessful, resulting in null values when trying to manipulate it further with functions like LEFT, MID, etc.&lt;/P&gt;
&lt;P&gt;The final result I'm aiming for is to transform MyField, which is subfield 1 (and similarly for the rest), into the format 015613-0008-666 (i.e., the first 6 characters, followed by a dash, then the next 4 characters, another dash,&amp;nbsp; the next 3 characters and finally remove the rest).&lt;/P&gt;
&lt;P&gt;If anyone has encountered a similar situation or has ideas on how to overcome this limitation, your insights would be greatly appreciated! Thank you in advance for your help.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jul 2023 07:28:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Subfield-Manipulation-problem/m-p/2098438#M89944</guid>
      <dc:creator>YanivZi</dc:creator>
      <dc:date>2023-07-30T07:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield Manipulation problem</title>
      <link>https://community.qlik.com/t5/App-Development/Subfield-Manipulation-problem/m-p/2098448#M89946</link>
      <description>&lt;P&gt;I'm not sure what exactly you're doing here - Subfield() doesn't impact the leading zero as far as I know.&lt;/P&gt;
&lt;P&gt;Load Subfield((Field),';') as Field1&lt;BR /&gt;INLINE [ &lt;BR /&gt;Field&lt;BR /&gt;01561300008000000;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0&lt;BR /&gt;01561330008000002;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Or_0-1690714967700.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113195i72B68DE8FF62DA13/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Or_0-1690714967700.png" alt="Or_0-1690714967700.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Note that you can use Text(SubField(Field)) to force the result to be rendered as text, rather than the dynamic result you'll get by just applying SubField(). &lt;/P&gt;</description>
      <pubDate>Sun, 30 Jul 2023 11:08:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Subfield-Manipulation-problem/m-p/2098448#M89946</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2023-07-30T11:08:53Z</dc:date>
    </item>
  </channel>
</rss>

