<?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 Order with two dimensions and a expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-Order-with-two-dimensions-and-a-expression/m-p/1276564#M860617</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be use a calculated dimension to replace Company&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/150127_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Dual(Company, Aggr(Sum(Income), Category, Company))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jan 2017 22:43:43 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-01-19T22:43:43Z</dc:date>
    <item>
      <title>Sort Order with two dimensions and a expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-Order-with-two-dimensions-and-a-expression/m-p/1276563#M860616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, QlikView community&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an easy data that has category for my companies (fish, food and machinery), Comapny then year and income&lt;/P&gt;&lt;P&gt;An example in the data look like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="116" style="width: 317px; height: 92px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" width="67"&gt;&lt;STRONG&gt;Category&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" width="167"&gt;&lt;STRONG&gt;Company &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl68" width="167"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Year&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl68" width="93"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Income&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17"&gt;Fish&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none;"&gt;Seafood&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none;"&gt;2016&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none;"&gt;1.532.545,78&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17"&gt;Machinery&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none;"&gt;Cars Inc.&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none;"&gt;2016&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none;"&gt;374.290,77&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17"&gt;Machinery&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none;"&gt;Machinery Inc.&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none;"&gt;2016&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none;"&gt;108.202,71&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is when I want to get sort order in my table.&lt;/P&gt;&lt;P&gt;I have sorted the companies after the biggest income (sum(income)).&lt;/P&gt;&lt;P&gt;But problem is when a do that is the companies that are big in many categories are always first.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;But I want the category to be alphabetical order and then &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;I want to have sort order after category and biggest income.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I want the order for Fish to be the biggest in that category is first and then down the list:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Seafood&lt;/P&gt;&lt;P&gt;2. Fresh Food&lt;/P&gt;&lt;P&gt;3, Frozen Seafood&lt;/P&gt;&lt;P&gt;5. Frozen Food Inc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 321px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="98"&gt;&lt;STRONG&gt;Category&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="125"&gt;&lt;STRONG&gt;Company&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" width="98"&gt;&lt;STRONG&gt;=sum(Income)&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Fish&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Seafood&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1.586.083&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;Fish&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&lt;STRONG style="color: #ff0000;"&gt;Frozen Seafood&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;STRONG style="color: #ff0000;"&gt;49.767&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;&lt;STRONG style="color: #ff0000;"&gt;Fish&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&lt;STRONG style="color: #ff0000;"&gt;Fresh Food&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;54.499&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Fish&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Frozen Food Inc&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;454&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Food&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Frozen Seafood&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;500.000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Food&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Candy Inc.&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Machinery&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Cars Inc.&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;376.647&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Machinery&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Machinery Inc.&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;111.400&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards Darru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-Order-with-two-dimensions-and-a-expression/m-p/1276563#M860616</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Order with two dimensions and a expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-Order-with-two-dimensions-and-a-expression/m-p/1276564#M860617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be use a calculated dimension to replace Company&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/150127_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Dual(Company, Aggr(Sum(Income), Category, Company))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 22:43:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-Order-with-two-dimensions-and-a-expression/m-p/1276564#M860617</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-19T22:43:43Z</dc:date>
    </item>
  </channel>
</rss>

