<?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: Sorting issue in Concat function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-issue-in-Concat-function/m-p/1062922#M355636</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Concat(If(Aggr(Rank(Sum(Sales)),[Product ID],[Salesman ID])&amp;lt;=5,[Salesman ID]),',', Aggr(Rank(Sum(Sales)), [Product ID], [Salesman ID]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/117828_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 13 Mar 2016 16:21:38 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-03-13T16:21:38Z</dc:date>
    <item>
      <title>Sorting issue in Concat function</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-issue-in-Concat-function/m-p/1062921#M355635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a expression in text box as =Concat(SalesManID,',') and I am selecting a Product in the list box.&lt;/P&gt;&lt;P&gt;My requirement is&lt;/P&gt;&lt;P&gt;Would like to see all the SalesmanID associated with the selected product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to see them using concat but when I am trying to sort them descending by their sales I failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I missed some thing in the aggr I used for sort weight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kiran kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Mar 2016 16:15:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-issue-in-Concat-function/m-p/1062921#M355635</guid>
      <dc:creator>kkkumar82</dc:creator>
      <dc:date>2016-03-13T16:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting issue in Concat function</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-issue-in-Concat-function/m-p/1062922#M355636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Concat(If(Aggr(Rank(Sum(Sales)),[Product ID],[Salesman ID])&amp;lt;=5,[Salesman ID]),',', Aggr(Rank(Sum(Sales)), [Product ID], [Salesman ID]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/117828_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Mar 2016 16:21:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-issue-in-Concat-function/m-p/1062922#M355636</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-13T16:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting issue in Concat function</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-issue-in-Concat-function/m-p/1062923#M355637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Concat(distinct [Salesman ID],',', -aggr(NODISTINCT sum(Sales),[Salesman ID],[Product ID]))&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Mar 2016 16:26:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-issue-in-Concat-function/m-p/1062923#M355637</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-03-13T16:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting issue in Concat function</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-issue-in-Concat-function/m-p/1062924#M355638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maxgro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with altering the dimension list in aggr to ProductId and SalesmanId it was working fine, just curious to what "NoDistinct" is doing for sorting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you delve here, about NoDistinct&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kiran Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Mar 2016 17:24:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-issue-in-Concat-function/m-p/1062924#M355638</guid>
      <dc:creator>kkkumar82</dc:creator>
      <dc:date>2016-03-13T17:24:41Z</dc:date>
    </item>
  </channel>
</rss>

