<?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: Length of field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Length-of-field/m-p/1311300#M827220</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Hi Kushal,&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;By changing the format of the field in excel to text the starting 0's disappear.&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 01 Jul 2017 05:53:03 GMT</pubDate>
    <dc:creator>coolwaters</dc:creator>
    <dc:date>2017-07-01T05:53:03Z</dc:date>
    <item>
      <title>Length of field</title>
      <link>https://community.qlik.com/t5/QlikView/Length-of-field/m-p/1311294#M827214</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;A column in excel has ID field with numbers. Some begin with 0's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to get the data into QlikView with the 0's which is correct. But i also need to know the length of the field and the 0's are getting ignored when using LEN(). I need the length considering the 0's which should be 11 for all the ID's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="168792" alt="" class="jive-image image-1" height="202" src="https://community.qlik.com/legacyfs/online/168792_pastedImage_0.png" style="width: 187.89px; height: 202px;" width="188" /&gt;&lt;/P&gt;&lt;P&gt;I have tried using Text() but strangely it is trimming the 0's.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" height="211" src="https://community.qlik.com/legacyfs/online/168793_pastedImage_0.png" style="width: 276.689px; height: 211px;" width="277" /&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>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Length-of-field/m-p/1311294#M827214</guid>
      <dc:creator>coolwaters</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Length of field</title>
      <link>https://community.qlik.com/t5/QlikView/Length-of-field/m-p/1311295#M827215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Len(Fields) as FieldLen,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text(Fields) as FieldTe, // Or Use Keepchar function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; KeepChar(Fields,'0123456789') as FieldK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Length:&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Fields&lt;/P&gt;&lt;P&gt;00000000112&lt;/P&gt;&lt;P&gt;00002327004&lt;/P&gt;&lt;P&gt;00002327030&lt;/P&gt;&lt;P&gt;51079094356&lt;/P&gt;&lt;P&gt;51079094420&lt;/P&gt;&lt;P&gt;51079094708&lt;/P&gt;&lt;P&gt;03076803568&lt;/P&gt;&lt;P&gt;06318953300&lt;/P&gt;&lt;P&gt;07431230413&lt;/P&gt;&lt;P&gt;00006035131&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this is the o/p i'm getting&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/168775_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Jul 2017 00:49:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Length-of-field/m-p/1311295#M827215</guid>
      <dc:creator>BalaBhaskar_Qlik</dc:creator>
      <dc:date>2017-07-01T00:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Length of field</title>
      <link>https://community.qlik.com/t5/QlikView/Length-of-field/m-p/1311296#M827216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Hi Bala,&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;Please try using the excel attached. I still have the same issue.&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Jul 2017 02:26:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Length-of-field/m-p/1311296#M827216</guid>
      <dc:creator>coolwaters</dc:creator>
      <dc:date>2017-07-01T02:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Length of field</title>
      <link>https://community.qlik.com/t5/QlikView/Length-of-field/m-p/1311297#M827217</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;What is the issue are you getting. len() function is working fine in back/front end. refer below is based on your excel source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *, len(ID);&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000000112&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00002327004&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00002327030&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 51079094356&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 51079094420&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 51079094708&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 03076803568&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 06318953300&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 07431230413&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6035131&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/168769_Capture.JPG" style="height: 289px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Jul 2017 04:48:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Length-of-field/m-p/1311297#M827217</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2017-07-01T04:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Length of field</title>
      <link>https://community.qlik.com/t5/QlikView/Length-of-field/m-p/1311298#M827218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One solution could be, change your ID field format of your excel to Text, then enter the values and load it n qlikview&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Jul 2017 05:33:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Length-of-field/m-p/1311298#M827218</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-07-01T05:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Length of field</title>
      <link>https://community.qlik.com/t5/QlikView/Length-of-field/m-p/1311299#M827219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Hi Devarasu,&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;Request you to import the data from the excel attached. With Inline Load there is no issue.&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;Thanks.&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Jul 2017 05:49:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Length-of-field/m-p/1311299#M827219</guid>
      <dc:creator>coolwaters</dc:creator>
      <dc:date>2017-07-01T05:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Length of field</title>
      <link>https://community.qlik.com/t5/QlikView/Length-of-field/m-p/1311300#M827220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Hi Kushal,&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;By changing the format of the field in excel to text the starting 0's disappear.&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Jul 2017 05:53:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Length-of-field/m-p/1311300#M827220</guid>
      <dc:creator>coolwaters</dc:creator>
      <dc:date>2017-07-01T05:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Length of field</title>
      <link>https://community.qlik.com/t5/QlikView/Length-of-field/m-p/1311301#M827221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How you are getting dump in excel file? If you are getting it from IT team, ask them to give this column in text format. They must be giving this dump by querying the database. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Jul 2017 06:14:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Length-of-field/m-p/1311301#M827221</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-07-01T06:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Length of field</title>
      <link>https://community.qlik.com/t5/QlikView/Length-of-field/m-p/1311302#M827222</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;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Temp:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="color: #800000;"&gt;ID&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;FROM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;A class="" data-containerid="-1" data-containertype="-1" data-objectid="285531" data-objecttype="13" href="https://community.qlik.com/servlet/JiveServlet/download/2003-266190-1298892-285531/Number+Test.xlsx"&gt;https://community.qlik.com/servlet/JiveServlet/download/1298892-285531/Number%20Test.xlsx&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt; (&lt;SPAN style="color: #0000ff;"&gt;ooxml&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;embedded&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;labels&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;table&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;is&lt;/SPAN&gt; Sheet1);&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="color: #800000;"&gt;ID&lt;/SPAN&gt;,&lt;SPAN style="color: #0000ff;"&gt;Len&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Text&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;ID&lt;/SPAN&gt;)) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Len&lt;/SPAN&gt;;&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff;"&gt;Text&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;ID&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ID&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;Resident&lt;/SPAN&gt; Temp;&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;Drop&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff;"&gt;Table&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; Temp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/168794_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Jul 2017 06:25:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Length-of-field/m-p/1311302#M827222</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-07-01T06:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Length of field</title>
      <link>https://community.qlik.com/t5/QlikView/Length-of-field/m-p/1311303#M827223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a column which has zero replaced by 1 and the find length of this column&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;replace(Columnname, '0', ' 1') as newcolumn&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Find Len (Newcolumn) and drop newcolumn.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Do this in load script&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Jul 2017 09:28:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Length-of-field/m-p/1311303#M827223</guid>
      <dc:creator>passionate</dc:creator>
      <dc:date>2017-07-01T09:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Length of field</title>
      <link>https://community.qlik.com/t5/QlikView/Length-of-field/m-p/1311304#M827224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antonio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works, thanks again for all your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Jul 2017 15:12:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Length-of-field/m-p/1311304#M827224</guid>
      <dc:creator>coolwaters</dc:creator>
      <dc:date>2017-07-02T15:12:04Z</dc:date>
    </item>
  </channel>
</rss>

