<?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 Concatenate Keys in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Concatenate-Keys/m-p/579897#M215523</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i have an issue with concatenation of ordernummer and order row key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Ordernr&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;RowNr&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;% Key&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;101&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100101&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1001&lt;/TD&gt;&lt;TD&gt;01&lt;/TD&gt;&lt;TD&gt;100101&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i wish to set the length of the Order and the RowNr to 8 respective 5 places. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set&amp;nbsp; len Ordernr = 8;&lt;/P&gt;&lt;P&gt;set len Rownr = 5;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then i wish to do an if statement to check the amount of the characters in the string and where there are missing places replaces with 0&lt;/P&gt;&lt;P&gt;ie. if(len(Ordernr &amp;lt; 8, fill replace(Ordernr,' ', 0) as Ordernr_tmp &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the same for RowNr if required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have attached a sample app if anyone has dealt with this before?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Feb 2014 08:42:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-13T08:42:20Z</dc:date>
    <item>
      <title>Concatenate Keys</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-Keys/m-p/579897#M215523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i have an issue with concatenation of ordernummer and order row key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Ordernr&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;RowNr&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;% Key&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;101&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100101&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1001&lt;/TD&gt;&lt;TD&gt;01&lt;/TD&gt;&lt;TD&gt;100101&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i wish to set the length of the Order and the RowNr to 8 respective 5 places. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set&amp;nbsp; len Ordernr = 8;&lt;/P&gt;&lt;P&gt;set len Rownr = 5;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then i wish to do an if statement to check the amount of the characters in the string and where there are missing places replaces with 0&lt;/P&gt;&lt;P&gt;ie. if(len(Ordernr &amp;lt; 8, fill replace(Ordernr,' ', 0) as Ordernr_tmp &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the same for RowNr if required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have attached a sample app if anyone has dealt with this before?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 08:42:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-Keys/m-p/579897#M215523</guid>
      <dc:creator />
      <dc:date>2014-02-13T08:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate Keys</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-Keys/m-p/579898#M215524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brad,&lt;/P&gt;&lt;P&gt;The easy way it comes to my mind is doing like this in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Text(Num(Ordernr, '00000000')) AS Ordernr // this will add leading zeroes as needed up to 8 figures total&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 08:46:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-Keys/m-p/579898#M215524</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2014-02-13T08:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate Keys</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-Keys/m-p/579899#M215525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bradley&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;an other way is to concatenate like this, and autonumber your key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;autonumber(OrderNr &amp;amp; '-' &amp;amp; Rownr)&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;you'll get&amp;nbsp; 100-101&amp;nbsp; transformed as number %Key = 1&lt;/P&gt;&lt;P&gt;and 1001-01 transformed as number %Key = 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 09:11:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-Keys/m-p/579899#M215525</guid>
      <dc:creator />
      <dc:date>2014-02-13T09:11:52Z</dc:date>
    </item>
  </channel>
</rss>

