<?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: data format in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/data-format/m-p/933766#M322552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Sunny suggested, use Text(empid) this will sure work... You can use this in expression or in script as well..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;EMP_ID&lt;/P&gt;&lt;P&gt;0000000001&lt;/P&gt;&lt;P&gt;0000000002&lt;/P&gt;&lt;P&gt;0000000003&lt;/P&gt;&lt;P&gt;0000000123&lt;/P&gt;&lt;P&gt;0000030001&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD*,&lt;/P&gt;&lt;P&gt;TEXT(EMP_ID) AS NEW_EMP_ID&lt;/P&gt;&lt;P&gt;RESIDENT T1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Oct 2015 03:18:16 GMT</pubDate>
    <dc:creator>SreeniJD</dc:creator>
    <dc:date>2015-10-08T03:18:16Z</dc:date>
    <item>
      <title>data format</title>
      <link>https://community.qlik.com/t5/QlikView/data-format/m-p/933762#M322548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one excel file like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;employee id&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;123&lt;/P&gt;&lt;P&gt;145&lt;/P&gt;&lt;P&gt;3000&lt;/P&gt;&lt;P&gt;30000&lt;/P&gt;&lt;P&gt;30001&lt;/P&gt;&lt;P&gt;aftr import into qlikview i did some calucatlations&amp;nbsp; and&amp;nbsp; after that field lik below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0000000001&lt;/P&gt;&lt;P&gt;0000000002&lt;/P&gt;&lt;P&gt;0000000003&lt;/P&gt;&lt;P&gt;0000000123&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;0000030001..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then am using store command and store it into.txt format in excel ...but i didnt get zeros in excel?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i achieve this help me on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 02:57:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/data-format/m-p/933762#M322548</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2015-10-08T02:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: data format</title>
      <link>https://community.qlik.com/t5/QlikView/data-format/m-p/933763#M322549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be use the Text() function after you do the calculations and before you transfer it out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 03:05:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/data-format/m-p/933763#M322549</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-08T03:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: data format</title>
      <link>https://community.qlik.com/t5/QlikView/data-format/m-p/933764#M322550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for ur response sunny..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i used&lt;/P&gt;&lt;P&gt;Text()&lt;/P&gt;&lt;P&gt;text(empid) as empid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but didnt worked?&amp;nbsp;&amp;nbsp; how can i?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 03:10:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/data-format/m-p/933764#M322550</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2015-10-08T03:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: data format</title>
      <link>https://community.qlik.com/t5/QlikView/data-format/m-p/933765#M322551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Again not sure if this would work, but give this a try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Text(Num(empid, '00000000000')) as empid&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 03:13:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/data-format/m-p/933765#M322551</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-08T03:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: data format</title>
      <link>https://community.qlik.com/t5/QlikView/data-format/m-p/933766#M322552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Sunny suggested, use Text(empid) this will sure work... You can use this in expression or in script as well..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;EMP_ID&lt;/P&gt;&lt;P&gt;0000000001&lt;/P&gt;&lt;P&gt;0000000002&lt;/P&gt;&lt;P&gt;0000000003&lt;/P&gt;&lt;P&gt;0000000123&lt;/P&gt;&lt;P&gt;0000030001&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD*,&lt;/P&gt;&lt;P&gt;TEXT(EMP_ID) AS NEW_EMP_ID&lt;/P&gt;&lt;P&gt;RESIDENT T1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 03:18:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/data-format/m-p/933766#M322552</guid>
      <dc:creator>SreeniJD</dc:creator>
      <dc:date>2015-10-08T03:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: data format</title>
      <link>https://community.qlik.com/t5/QlikView/data-format/m-p/933767#M322553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit;"&gt;QV interprets field as a number and once converted, similar to Excel the leading zero are lost. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit;"&gt;I believe using Text() in your initial load will resolve the issue. Fields that look like numbers should be treated as text .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit;"&gt;Use * but will need one extra field for text(Field Name) :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit;"&gt;LOAD *,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text(Field Name) As FieldName;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit;"&gt;FROM ...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit;"&gt;DROP Field FieldName;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit;"&gt;RENAME Field Field Name to FieldName;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 03:21:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/data-format/m-p/933767#M322553</guid>
      <dc:creator />
      <dc:date>2015-10-08T03:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: data format</title>
      <link>https://community.qlik.com/t5/QlikView/data-format/m-p/933768#M322554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&amp;nbsp; sunny and arjun..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i will try and let u know.. if it is wrkng or not..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Suresh chanty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 03:25:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/data-format/m-p/933768#M322554</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2015-10-08T03:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: data format</title>
      <link>https://community.qlik.com/t5/QlikView/data-format/m-p/933769#M322555</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;Your issue looks similar to thread #788112 .Please check the below link .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/788112"&gt;Re: Keeping Leading Zeros&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 03:32:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/data-format/m-p/933769#M322555</guid>
      <dc:creator>saurabhwadhwa</dc:creator>
      <dc:date>2015-10-08T03:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: data format</title>
      <link>https://community.qlik.com/t5/QlikView/data-format/m-p/933770#M322556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One More approach &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Excel will remove the leading zero's if you open the text in excel.&lt;/P&gt;&lt;P&gt;May be you can try this &lt;/P&gt;&lt;P&gt;after storing the data as text, change the extension as .CSV&lt;/P&gt;&lt;P&gt;Open new excel -&amp;gt; Data Tab -&amp;gt; Get External Data -&amp;gt; From Text&lt;/P&gt;&lt;P&gt;Select the CSV (you changed from .txt to .csv)&lt;/P&gt;&lt;P&gt;Text Import Wizard will appear, In the third step of wizard &lt;/P&gt;&lt;P&gt;Change the Column Data format&amp;nbsp; as Text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/101375_Capture.JPG" style="height: 435px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 04:16:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/data-format/m-p/933770#M322556</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2015-10-08T04:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: data format</title>
      <link>https://community.qlik.com/t5/QlikView/data-format/m-p/933771#M322557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks all. its working fine. thanks settu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 06:03:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/data-format/m-p/933771#M322557</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2015-10-08T06:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: data format</title>
      <link>https://community.qlik.com/t5/QlikView/data-format/m-p/933772#M322558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks JD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 06:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/data-format/m-p/933772#M322558</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2015-10-08T06:48:22Z</dc:date>
    </item>
  </channel>
</rss>

