<?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: Sort two dimensions based on total from an expression column within the range of the dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-two-dimensions-based-on-total-from-an-expression-column/m-p/781556#M533957</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sort both dimensions by an expression sum([Sold Incl VAT (E)])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Mar 2015 10:42:02 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-03-11T10:42:02Z</dc:date>
    <item>
      <title>Sort two dimensions based on total from an expression column within the range of the dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-two-dimensions-based-on-total-from-an-expression-column/m-p/781555#M533956</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;We have the following situation in a straight table:&lt;/P&gt;&lt;P&gt;3 dimensions ==&amp;gt; BRANDS/GROUPS/Product&lt;/P&gt;&lt;P&gt;1 Expression ==&amp;gt; Sold Incl VAT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have to define a sort on the dimensions BRANDS and GROUPS, based on the total sum of Sold Incl VAT inside that brand/group (descending order).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our result should look like this:&lt;/P&gt;&lt;P&gt;Everything from Brand 1 should be first because the total of brand 1 (9.000,-) is higher than the total on brand 2 (8.000,-).&lt;/P&gt;&lt;P&gt;Inside brand 1 everything from group 1 should come first because the total of group 1 (5.000,-) is higher than that of group 2 (4.000,-).&lt;/P&gt;&lt;P&gt;Inside brand 2 everything from group 1 should come first because the total of group 1 insidie brand 2 (5.000,-) is higher than the total of group 2 inside brand 2 (3.000,-).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We tried a few different solutions:&lt;/P&gt;&lt;P&gt;- we started by first disabling all kinds of sorting on the table.&lt;/P&gt;&lt;P&gt;- first we moved the Sold Incl Vat column up in the sort hierarchy (we tried: before BRANDS, before GROUPS, after GROUPS, etc...)&lt;/P&gt;&lt;P&gt;- then we tried to add a sorting on both brands/groups with an expression equal to the expression used in Sold Incl VAT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nothing seems to be correct. There still seems to be a kind of randomness in the sorting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are we doing wrong here? Thx in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="349" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#000000&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" style="border: 1px solid rgb(0, 0, 0); width: 789px; height: 326px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em;"&gt;BRANDS (D)&lt;/STRONG&gt;&lt;/P&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;GROUPS (D)&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;Product (D)&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;Sold Incl VAT (E)&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Brand1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Group1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;prod1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Brand1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Group2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;prod2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Brand2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Group1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;prod1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Brand2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Group1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;prod1b&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;1000&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Brand2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Group1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;prod1c&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;1000&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Brand2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Group1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;prod1d&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;1000&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Brand2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Group1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;prod1e&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;1000&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Brand2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Group2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;prod2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;1000&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Brand2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;Group2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;prod2b&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;1000&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Brand2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Group2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;prod2c&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;1000&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 10:25:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-two-dimensions-based-on-total-from-an-expression-column/m-p/781555#M533956</guid>
      <dc:creator />
      <dc:date>2015-03-11T10:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sort two dimensions based on total from an expression column within the range of the dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-two-dimensions-based-on-total-from-an-expression-column/m-p/781556#M533957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sort both dimensions by an expression sum([Sold Incl VAT (E)])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 10:42:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-two-dimensions-based-on-total-from-an-expression-column/m-p/781556#M533957</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-03-11T10:42:02Z</dc:date>
    </item>
  </channel>
</rss>

