<?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 Generating blank spaces based on field value length in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Generating-blank-spaces-based-on-field-value-length/m-p/718702#M674637</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've a table like below&lt;/P&gt;&lt;P&gt;sample:&lt;/P&gt;&lt;P&gt;load * Inline [&lt;/P&gt;&lt;P&gt;id,name&lt;/P&gt;&lt;P&gt;1,abc&lt;/P&gt;&lt;P&gt;2,abcd&lt;/P&gt;&lt;P&gt;3,abcde&lt;/P&gt;&lt;P&gt;4,abcdef&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking for a solution using which I would be able to create another field which will have spaces[' '] based on the length of the field 'name'. for example the table with the new field (fieldlen) should look like below&lt;/P&gt;&lt;P&gt;id,name,fieldlen&lt;/P&gt;&lt;P&gt;1, abc, '&amp;nbsp;&amp;nbsp; '&lt;/P&gt;&lt;P&gt;2, abcd, '&amp;nbsp;&amp;nbsp;&amp;nbsp; '&lt;/P&gt;&lt;P&gt;3, abcde, '&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '&lt;/P&gt;&lt;P&gt;4, abcdef, '&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '&lt;/P&gt;&lt;P&gt;for id = 1 the fieldlen value should be 3 spaces and for id=2 the fieldlen value should be 4 spaces and so on.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Sudeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Aug 2014 15:13:10 GMT</pubDate>
    <dc:creator>sudeepkm</dc:creator>
    <dc:date>2014-08-05T15:13:10Z</dc:date>
    <item>
      <title>Generating blank spaces based on field value length</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-blank-spaces-based-on-field-value-length/m-p/718702#M674637</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've a table like below&lt;/P&gt;&lt;P&gt;sample:&lt;/P&gt;&lt;P&gt;load * Inline [&lt;/P&gt;&lt;P&gt;id,name&lt;/P&gt;&lt;P&gt;1,abc&lt;/P&gt;&lt;P&gt;2,abcd&lt;/P&gt;&lt;P&gt;3,abcde&lt;/P&gt;&lt;P&gt;4,abcdef&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking for a solution using which I would be able to create another field which will have spaces[' '] based on the length of the field 'name'. for example the table with the new field (fieldlen) should look like below&lt;/P&gt;&lt;P&gt;id,name,fieldlen&lt;/P&gt;&lt;P&gt;1, abc, '&amp;nbsp;&amp;nbsp; '&lt;/P&gt;&lt;P&gt;2, abcd, '&amp;nbsp;&amp;nbsp;&amp;nbsp; '&lt;/P&gt;&lt;P&gt;3, abcde, '&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '&lt;/P&gt;&lt;P&gt;4, abcdef, '&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '&lt;/P&gt;&lt;P&gt;for id = 1 the fieldlen value should be 3 spaces and for id=2 the fieldlen value should be 4 spaces and so on.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Sudeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 15:13:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-blank-spaces-based-on-field-value-length/m-p/718702#M674637</guid>
      <dc:creator>sudeepkm</dc:creator>
      <dc:date>2014-08-05T15:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Generating blank spaces based on field value length</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-blank-spaces-based-on-field-value-length/m-p/718703#M674638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;repeat(' ',len([name]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 15:22:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-blank-spaces-based-on-field-value-length/m-p/718703#M674638</guid>
      <dc:creator>juleshartley</dc:creator>
      <dc:date>2014-08-05T15:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Generating blank spaces based on field value length</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-blank-spaces-based-on-field-value-length/m-p/718704#M674639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached with answer. Its a little tedious, but once set up it will be good.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 15:26:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-blank-spaces-based-on-field-value-length/m-p/718704#M674639</guid>
      <dc:creator />
      <dc:date>2014-08-05T15:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Generating blank spaces based on field value length</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-blank-spaces-based-on-field-value-length/m-p/718705#M674640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your solution is good but what if we have 100 of records and having different combinations..&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;Kushal T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 15:34:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-blank-spaces-based-on-field-value-length/m-p/718705#M674640</guid>
      <dc:creator>kushalthakral</dc:creator>
      <dc:date>2014-08-05T15:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Generating blank spaces based on field value length</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-blank-spaces-based-on-field-value-length/m-p/718706#M674641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will still work. You just need to first set up for the 26 alphabets once. Once thats done, then the code is the same irrespective of the # of records.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 15:47:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-blank-spaces-based-on-field-value-length/m-p/718706#M674641</guid>
      <dc:creator />
      <dc:date>2014-08-05T15:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Generating blank spaces based on field value length</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-blank-spaces-based-on-field-value-length/m-p/718707#M674642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okk, we can simply write repeat with length statement in script so no need to create inline table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kushal T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 15:59:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-blank-spaces-based-on-field-value-length/m-p/718707#M674642</guid>
      <dc:creator>kushalthakral</dc:creator>
      <dc:date>2014-08-05T15:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Generating blank spaces based on field value length</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-blank-spaces-based-on-field-value-length/m-p/718708#M674643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah. That seems like a simpler option. Mine is just another way of approaching the same issue.&lt;/P&gt;&lt;P&gt;Repeat() is definitely an ideal solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 16:09:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-blank-spaces-based-on-field-value-length/m-p/718708#M674643</guid>
      <dc:creator />
      <dc:date>2014-08-05T16:09:27Z</dc:date>
    </item>
  </channel>
</rss>

