<?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: Concat string by order in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Concat-string-by-order/m-p/893096#M310979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this app&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Apr 2015 11:12:20 GMT</pubDate>
    <dc:creator>anbu1984</dc:creator>
    <dc:date>2015-04-10T11:12:20Z</dc:date>
    <item>
      <title>Concat string by order</title>
      <link>https://community.qlik.com/t5/QlikView/Concat-string-by-order/m-p/893090#M310973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with several values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Column1 | Column 2&lt;/P&gt;&lt;P&gt;--------------|---------------&lt;/P&gt;&lt;P&gt;0733&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;0732&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;0730&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;0729&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;0728&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp; 15&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I concatenate the values of Column 2 on a text object and I get the value: 001115.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values seems to be concatenated by numerical order, but I&amp;nbsp; would like to keep the order I have in the table: 011015&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the expression I have in the text object:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Concat(Column 2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas how I can to this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ivo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 08:01:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-string-by-order/m-p/893090#M310973</guid>
      <dc:creator />
      <dc:date>2015-04-10T08:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Concat string by order</title>
      <link>https://community.qlik.com/t5/QlikView/Concat-string-by-order/m-p/893091#M310974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add RowNo() to your input&lt;/P&gt;&lt;P&gt;Load &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Column1 , Column2, RowNo() As RowNo From Table;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this expr in Text box&lt;/P&gt;&lt;P&gt;=Concat(Column2,'',RowNo)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 08:14:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-string-by-order/m-p/893091#M310974</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-04-10T08:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Concat string by order</title>
      <link>https://community.qlik.com/t5/QlikView/Concat-string-by-order/m-p/893092#M310975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here is anbu's example &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;BKC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 08:18:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-string-by-order/m-p/893092#M310975</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-10T08:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Concat string by order</title>
      <link>https://community.qlik.com/t5/QlikView/Concat-string-by-order/m-p/893093#M310976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;You can add a Sort-Weight parameter to the concat expression. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;If the sort weight is not specified the concatenated data is sorted in expression order&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;STRONG&gt;concat (&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="italic;"&gt;[ distinct ] expression [, delimiter [, sort-weight]]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Returns the aggregated string concatenation of all values of expression iterated over a number of records as defined by a &lt;SPAN class="Bold"&gt;group by&lt;/SPAN&gt; clause. Each value may be separated by the string found in &lt;SPAN class="italic;"&gt;delimiter&lt;/SPAN&gt;. The order of concatenation may be determined by &lt;SPAN class="italic;"&gt;sort-weight&lt;/SPAN&gt;. &lt;SPAN class="italic;"&gt;Sort-weight&lt;/SPAN&gt; should return a numeric value where the lowest value will render the item to be &lt;BR /&gt;sorted first. If the word &lt;SPAN class="Bold"&gt;distinct&lt;/SPAN&gt; occurs before the &lt;SPAN class="italic;"&gt;expression&lt;/SPAN&gt;, all duplicates will be disregarded. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 08:19:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-string-by-order/m-p/893093#M310976</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2015-04-10T08:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Concat string by order</title>
      <link>https://community.qlik.com/t5/QlikView/Concat-string-by-order/m-p/893094#M310977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Colin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sorted value seems to work but still not in&amp;nbsp; the order I want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added a set analysis to the expression because I need to limit my results:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Concat({&amp;lt;Column 3={'A'}&amp;gt;}Column 2, Column1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This actually orders my results in a different way, but I think the set analysis in only affecting the first parameter of the concat function (&lt;SPAN class="Bold"&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="italic;"&gt;[ distinct ] expression&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="italic;"&gt;) and not the second (&lt;STRONG&gt;&lt;SPAN class="italic;"&gt;sort-weight]&lt;/SPAN&gt;&lt;/STRONG&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="italic;"&gt;Any thoughts?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="italic;"&gt;Ivo&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 09:39:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-string-by-order/m-p/893094#M310977</guid>
      <dc:creator />
      <dc:date>2015-04-10T09:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Concat string by order</title>
      <link>https://community.qlik.com/t5/QlikView/Concat-string-by-order/m-p/893095#M310978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ivo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the sort-weight is numeric. So if you are using your column 2 as the sort, it will order according to smallest first, that is what you are seeing maybe? 0728,0729,0730,0732,0733 --&amp;gt; 15,0,1,1,0 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to sort based on the rows in your original post, you'll need a field with that order, so maybe look at abnu's suggestion (or use one of the extra columns you may have in your model that has the right order already).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 09:48:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-string-by-order/m-p/893095#M310978</guid>
      <dc:creator />
      <dc:date>2015-04-10T09:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Concat string by order</title>
      <link>https://community.qlik.com/t5/QlikView/Concat-string-by-order/m-p/893096#M310979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this app&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 11:12:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-string-by-order/m-p/893096#M310979</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-04-10T11:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Concat string by order</title>
      <link>https://community.qlik.com/t5/QlikView/Concat-string-by-order/m-p/893097#M310980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had another parameters that were influencing the order of the results. So with the sort-weight the ordering works well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One last thing: how can I invert a string, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have "Hello world" and would like to have "dlrow olleH".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a function to achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you and have a nice week end!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ivo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 14:17:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-string-by-order/m-p/893097#M310980</guid>
      <dc:creator />
      <dc:date>2015-04-10T14:17:48Z</dc:date>
    </item>
  </channel>
</rss>

