<?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 Need Subfield load expression for Different formats in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-Subfield-load-expression-for-Different-formats/m-p/1200072#M386564</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I have 2 different qvd files which have same columns but i need to trim leading two zeros (if it has in the beginning, else load as it is) before joining them. I think i can use SubField function in the load script but none of the formats i specified worked. Following are the data formats from those two files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="IDformat1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/140809_IDformat1.JPG" style="height: auto;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;IMG alt="IDformat2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/140819_IDformat2.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Oct 2016 07:55:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-10-17T07:55:03Z</dc:date>
    <item>
      <title>Need Subfield load expression for Different formats</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Subfield-load-expression-for-Different-formats/m-p/1200072#M386564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I have 2 different qvd files which have same columns but i need to trim leading two zeros (if it has in the beginning, else load as it is) before joining them. I think i can use SubField function in the load script but none of the formats i specified worked. Following are the data formats from those two files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="IDformat1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/140809_IDformat1.JPG" style="height: auto;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;IMG alt="IDformat2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/140819_IDformat2.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 07:55:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Subfield-load-expression-for-Different-formats/m-p/1200072#M386564</guid>
      <dc:creator />
      <dc:date>2016-10-17T07:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need Subfield load expression for Different formats</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Subfield-load-expression-for-Different-formats/m-p/1200073#M386565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;if(Left(yourfield,2)='00',Mid(Yourfield,3,len(yourfield)), yourfiled) as Yourfiled&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 07:59:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Subfield-load-expression-for-Different-formats/m-p/1200073#M386565</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2016-10-17T07:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need Subfield load expression for Different formats</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Subfield-load-expression-for-Different-formats/m-p/1200074#M386566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James, can you try the Num() function?, ie:&lt;/P&gt;&lt;P&gt;Num(FieldName) as FieldName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To load string and numbers you can use: If(IsNum(FieldName), Num(FieldName), FieldName) as FieldName&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 08:14:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Subfield-load-expression-for-Different-formats/m-p/1200074#M386566</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-10-17T08:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need Subfield load expression for Different formats</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Subfield-load-expression-for-Different-formats/m-p/1200075#M386567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Alt(Num(Num#(FieldName)), FieldName) as FieldName&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 10:20:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Subfield-load-expression-for-Different-formats/m-p/1200075#M386567</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-17T10:20:16Z</dc:date>
    </item>
  </channel>
</rss>

