<?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: Keep leading zeros when saving to CSV in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Keep-leading-zeros-when-saving-to-CSV/m-p/538717#M201305</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you open the csv file in Excel of in a text editor? If it's Excel it's possible Excel is interpreting the text as numbers and dropping the leading 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Oct 2013 08:18:28 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-10-29T08:18:28Z</dc:date>
    <item>
      <title>Keep leading zeros when saving to CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Keep-leading-zeros-when-saving-to-CSV/m-p/538716#M201304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have text field (&lt;EM&gt;Kostenplaats&lt;/EM&gt;) which in some cases contains leading zero. I wrap the field in TEXT() function and the Qlikview shows it correctly in Qlikview. However when I store the resident to CSV, Qlikview drops the leading zero and perceives the field as a number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13830309390837328" jivemacro_uid="_13830309390837328" modifiedtitle="true"&gt;
&lt;P&gt;FOR EACH vBatch in $(vBatchList)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; exportFactuurBatch:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Load&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Datum, &lt;/P&gt;
&lt;P&gt; &lt;STRONG&gt; TEXT(IF (labelId =1 , '08 ', '608'))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS Kostenplaats,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 'D' AS Accounttype&lt;/P&gt;
&lt;P&gt;resident Inputfile&lt;/P&gt;
&lt;P&gt;WHERE Batch = '$(vBatch)'&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET vOutputFile = 'Webshopgiftcard Factuur Batch '&amp;amp;&amp;nbsp; '$(vBatch)' &amp;amp; '.csv';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; // store output file in intermidiate server location&lt;/P&gt;
&lt;P&gt;&amp;nbsp; store * fro&lt;/P&gt;
&lt;P&gt;m exportFactuurBatch into [$(AfasOutputLocation)\$(vOutputFile)] (txt,&amp;nbsp; delimiter is ';') ;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output: &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/48266_Capture.PNG.png" style="width: 620px; height: 50px;" /&gt;&lt;/P&gt;&lt;P&gt;This should be easy, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dror&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 07:20:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keep-leading-zeros-when-saving-to-CSV/m-p/538716#M201304</guid>
      <dc:creator />
      <dc:date>2013-10-29T07:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Keep leading zeros when saving to CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Keep-leading-zeros-when-saving-to-CSV/m-p/538717#M201305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you open the csv file in Excel of in a text editor? If it's Excel it's possible Excel is interpreting the text as numbers and dropping the leading 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 08:18:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keep-leading-zeros-when-saving-to-CSV/m-p/538717#M201305</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-10-29T08:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Keep leading zeros when saving to CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Keep-leading-zeros-when-saving-to-CSV/m-p/538718#M201306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In both. Both are dropping the leading zero's&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 11:14:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keep-leading-zeros-when-saving-to-CSV/m-p/538718#M201306</guid>
      <dc:creator />
      <dc:date>2013-10-29T11:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Keep leading zeros when saving to CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Keep-leading-zeros-when-saving-to-CSV/m-p/538719#M201307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't reproduce this. The leading zero and the trailing space are preserved in the csv file here. Can you post an example file that reproduces the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 11:21:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keep-leading-zeros-when-saving-to-CSV/m-p/538719#M201307</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-10-29T11:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Keep leading zeros when saving to CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Keep-leading-zeros-when-saving-to-CSV/m-p/538720#M201308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I was just working on a similar issue. You might have found the way, but for people with similar issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/14623"&gt;Store CSV file using semicolon instead of colon&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is a feature of excel to trim the zeros when uploaded from a different source. Sadly we cannot change that feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if one reads the same file again back into Qlik the preceeding Zero's come in.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2017 14:11:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keep-leading-zeros-when-saving-to-CSV/m-p/538720#M201308</guid>
      <dc:creator>vamsee</dc:creator>
      <dc:date>2017-04-06T14:11:40Z</dc:date>
    </item>
  </channel>
</rss>

