<?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 DISTINCT with sort-weight in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Concat-DISTINCT-with-sort-weight/m-p/1727625#M455508</link>
    <description>&lt;P&gt;Is there a way to do the same in the script?&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jul 2020 10:48:21 GMT</pubDate>
    <dc:creator>shane_spencer</dc:creator>
    <dc:date>2020-07-14T10:48:21Z</dc:date>
    <item>
      <title>Concat DISTINCT with sort-weight</title>
      <link>https://community.qlik.com/t5/QlikView/Concat-DISTINCT-with-sort-weight/m-p/1727593#M455505</link>
      <description>&lt;P&gt;I need help with of Concat Discinct of a Field with a Sort-Weight?&lt;/P&gt;&lt;P&gt;The default is A-Z.&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shane_spencer_0-1594718479940.jpeg" style="width: 605px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37395i6F0DB0A3FC33C4D5/image-dimensions/605x35?v=v2" width="605" height="35" role="button" title="shane_spencer_0-1594718479940.jpeg" alt="shane_spencer_0-1594718479940.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What I want is to sort by Total Absolute amount&lt;/P&gt;&lt;P&gt;i.e. The sort order should be as per below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shane_spencer_1-1594718479944.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37396i9062E7A2A28EBF63/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shane_spencer_1-1594718479944.jpeg" alt="shane_spencer_1-1594718479944.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But the best I can get is sorted by individual Absolute Amount – so it’s not distinct, values are repeated&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shane_spencer_2-1594718479948.jpeg" style="width: 677px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37397i583D064910A3DBCD/image-dimensions/677x44?v=v2" width="677" height="44" role="button" title="shane_spencer_2-1594718479948.jpeg" alt="shane_spencer_2-1594718479948.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;it's sorted like below (not the Sum of the Amounts)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shane_spencer_3-1594718479951.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37398i35F176EB36809F26/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shane_spencer_3-1594718479951.jpeg" alt="shane_spencer_3-1594718479951.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I think the answer maybe something to do with Aggr but I can’t work it out. Any ideas? See attached for sample data.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:22:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-DISTINCT-with-sort-weight/m-p/1727593#M455505</guid>
      <dc:creator>shane_spencer</dc:creator>
      <dc:date>2024-11-16T18:22:25Z</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/1727605#M455506</link>
      <description>&lt;P&gt;Try :&lt;/P&gt;&lt;P&gt;=Concat(Distinct GL_ACCOUNT_CODE_src_1,';', -Fabs(Aggr(&lt;STRONG&gt;NODISTINCT&lt;/STRONG&gt; Sum(AMT_NET_TAXREP_src_1),TRANS_INVOICE_NUMBER_src_1,GL_ACCOUNT_CODE_src_1)) )&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 09:59:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-DISTINCT-with-sort-weight/m-p/1727605#M455506</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-07-14T09:59:42Z</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/1727608#M455507</link>
      <description>&lt;P&gt;Thanks - that worked! Are you able to explain what it's doing / why inparticular I need the NODISTINCT ?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 10:07:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-DISTINCT-with-sort-weight/m-p/1727608#M455507</guid>
      <dc:creator>shane_spencer</dc:creator>
      <dc:date>2020-07-14T10:07:06Z</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/1727625#M455508</link>
      <description>&lt;P&gt;Is there a way to do the same in the script?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 10:48:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-DISTINCT-with-sort-weight/m-p/1727625#M455508</guid>
      <dc:creator>shane_spencer</dc:creator>
      <dc:date>2020-07-14T10:48:21Z</dc:date>
    </item>
  </channel>
</rss>

