<?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 concat distinct with sort weight in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/concat-distinct-with-sort-weight/m-p/386045#M1152724</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with the sort weight in a concat distinct expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I just used the expression without the sort weight:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FirstSortedValue({&amp;lt;filters&amp;gt;}Person,-Date,1) &amp;amp; ' (' &amp;amp; concat(distinct {&amp;lt;filters&amp;gt;}Country,'/') &amp;amp; ')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That works fine, except that the fields are ordered by alphabetical order. But when I add a sort weight with Date (nummerical version of date) the expression ignores the distinct line in the concat. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a known issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Apr 2013 14:51:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-22T14:51:53Z</dc:date>
    <item>
      <title>concat distinct with sort weight</title>
      <link>https://community.qlik.com/t5/QlikView/concat-distinct-with-sort-weight/m-p/386045#M1152724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with the sort weight in a concat distinct expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I just used the expression without the sort weight:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FirstSortedValue({&amp;lt;filters&amp;gt;}Person,-Date,1) &amp;amp; ' (' &amp;amp; concat(distinct {&amp;lt;filters&amp;gt;}Country,'/') &amp;amp; ')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That works fine, except that the fields are ordered by alphabetical order. But when I add a sort weight with Date (nummerical version of date) the expression ignores the distinct line in the concat. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a known issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 14:51:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/concat-distinct-with-sort-weight/m-p/386045#M1152724</guid>
      <dc:creator />
      <dc:date>2013-04-22T14:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: concat distinct with sort weight</title>
      <link>https://community.qlik.com/t5/QlikView/concat-distinct-with-sort-weight/m-p/1560825#M1152726</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am facing the same issue.&lt;/P&gt;&lt;P&gt;When using&amp;nbsp;&lt;SPAN&gt;sort-weight argument DISTINCT seems to be ignored.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Did you find any solution for this?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Pedro&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 14:23:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/concat-distinct-with-sort-weight/m-p/1560825#M1152726</guid>
      <dc:creator>PedroCunha</dc:creator>
      <dc:date>2019-03-25T14:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: concat distinct with sort weight</title>
      <link>https://community.qlik.com/t5/QlikView/concat-distinct-with-sort-weight/m-p/1726088#M1152728</link>
      <description>&lt;P&gt;I'm having this same issue. Trying to Concat the Distinct values with the order based on an Amount&lt;/P&gt;&lt;P&gt;Concat(DISTINCT GL_CC_CODE_src_1,';',AMT_NET_TAXREP_src_1) As GL_CC_CODE_src_3&lt;/P&gt;&lt;P&gt;This works fine if I leave off the sort weight i.e.&amp;nbsp;AMT_NET_TAXREP_src_1&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if I have the Sort Weight the distinct does not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 12:47:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/concat-distinct-with-sort-weight/m-p/1726088#M1152728</guid>
      <dc:creator>shane_spencer</dc:creator>
      <dc:date>2020-07-08T12:47:38Z</dc:date>
    </item>
  </channel>
</rss>

