<?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 How to format a cell with fixed characters! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-format-a-cell-with-fixed-characters/m-p/1411055#M810750</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Hi, Dear all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Please help me to achieve following objectives!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;1st Scenario!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I have set of employees whose ref_numbers are varied. It is said that every code should carries&lt;SPAN style="text-decoration: underline;"&gt; 5 characters.&lt;/SPAN&gt; Hence all numbers less than 5, &lt;SPAN style="text-decoration: underline;"&gt;need to have zero value in front of them.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;2nd Scenario!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;If I need to add zero value&lt;SPAN style="text-decoration: underline;"&gt; behind the numbers which are less than 5 characters how that be achieved!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/178909_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Thanks &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Neville&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>nevilledhamsiri</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>How to format a cell with fixed characters!</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-format-a-cell-with-fixed-characters/m-p/1411055#M810750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Hi, Dear all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Please help me to achieve following objectives!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;1st Scenario!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I have set of employees whose ref_numbers are varied. It is said that every code should carries&lt;SPAN style="text-decoration: underline;"&gt; 5 characters.&lt;/SPAN&gt; Hence all numbers less than 5, &lt;SPAN style="text-decoration: underline;"&gt;need to have zero value in front of them.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;2nd Scenario!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;If I need to add zero value&lt;SPAN style="text-decoration: underline;"&gt; behind the numbers which are less than 5 characters how that be achieved!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/178909_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Thanks &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Neville&lt;/SPAN&gt;&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/How-to-format-a-cell-with-fixed-characters/m-p/1411055#M810750</guid>
      <dc:creator>nevilledhamsiri</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to format a cell with fixed characters!</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-format-a-cell-with-fixed-characters/m-p/1411056#M810751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is best done in load script.&lt;/P&gt;&lt;P&gt;Scenario 1:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Len(REF_CODE)=5,&lt;SPAN style="font-size: 13.3333px;"&gt;REF_CODE&lt;/SPAN&gt;,repeat('0',5-len(&lt;SPAN style="font-size: 13.3333px;"&gt;REF_CODE&lt;/SPAN&gt;)) &amp;amp; &lt;SPAN style="font-size: 13.3333px;"&gt;REF_CODE&lt;/SPAN&gt;) as &lt;SPAN style="font-size: 13.3333px;"&gt;REF_CODE,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 17:27:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-format-a-cell-with-fixed-characters/m-p/1411056#M810751</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2017-10-06T17:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to format a cell with fixed characters!</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-format-a-cell-with-fixed-characters/m-p/1411057#M810752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks MW,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st&amp;nbsp; Scenario turns alright!, How I will achieve the 2nd scenario?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neville&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 17:36:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-format-a-cell-with-fixed-characters/m-p/1411057#M810752</guid>
      <dc:creator>nevilledhamsiri</dc:creator>
      <dc:date>2017-10-06T17:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to format a cell with fixed characters!</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-format-a-cell-with-fixed-characters/m-p/1411058#M810753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load *, if(len(REF_CODE)&amp;lt;5,REF_CODE&amp;amp;0,REF_CODE) as RefCodeNew;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; REF_CODE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2535&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6530&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7523&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12545&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15128&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 17:59:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-format-a-cell-with-fixed-characters/m-p/1411058#M810753</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2017-10-06T17:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to format a cell with fixed characters!</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-format-a-cell-with-fixed-characters/m-p/1411059#M810754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Frank,&lt;/P&gt;&lt;P&gt;This is alright&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neville&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 18:37:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-format-a-cell-with-fixed-characters/m-p/1411059#M810754</guid>
      <dc:creator>nevilledhamsiri</dc:creator>
      <dc:date>2017-10-06T18:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to format a cell with fixed characters!</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-format-a-cell-with-fixed-characters/m-p/1411060#M810755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Frank's answer will work only for numbers of 4 digits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Scenario 2:&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Len(REF_CODE)=5,&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;REF_CODE&lt;/SPAN&gt;, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;REF_CODE&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="font-size: 13.3333px;"&gt;repeat('0',5-len(&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 13.3333px;"&gt;REF_CODE&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;))) &lt;/SPAN&gt; as &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;REF_CODE,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2017 12:20:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-format-a-cell-with-fixed-characters/m-p/1411060#M810755</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2017-10-09T12:20:04Z</dc:date>
    </item>
  </channel>
</rss>

