<?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: How to sort horizontal pivot table with 2 dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-sort-horizontal-pivot-table-with-2-dimensions/m-p/1101512#M365361</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look here: &lt;A href="https://community.qlik.com/docs/DOC-7220"&gt;Perfectly Sorting Pivot Table (by A-Z. y-Value set for each dim-level)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 May 2016 07:16:43 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2016-05-24T07:16:43Z</dc:date>
    <item>
      <title>How to sort horizontal pivot table with 2 dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-horizontal-pivot-table-with-2-dimensions/m-p/1101510#M365359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help with the following problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my pivot table:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="125002" alt="pivot.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/125002_pivot.png" style="height: 92px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;First dimension : Year-Month&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Second dimension : Part Name&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;First Expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum([Inventory Qnt]) + RangeSum(Before(Total sum([Inventory Qnt]),1,ColumnNo(Total)))&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;(sum([Forcast Qnt]) + RangeSum(Before(Total sum([Forcast Qnt]),1,ColumnNo(Total))) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second &lt;SPAN style="font-size: 13.3333px;"&gt;Expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fabs(&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum([Inventory Qnt]) + RangeSum(Before(Total sum([Inventory Qnt]),1,ColumnNo(Total)))&lt;/P&gt;&lt;P&gt;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;&amp;nbsp; (sum([Forcast Qnt]) + RangeSum(Before(Total sum([Forcast Qnt]),1,ColumnNo(Total))) )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;Factor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The probelm:&lt;/P&gt;&lt;P&gt;I want to sort the Part Name by the Column number of the lowest value of the &lt;SPAN style="font-size: 13.3333px;"&gt;second &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example in the picture above i mark the lowest value of the &lt;SPAN style="font-size: 13.3333px;"&gt;second &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;expression per Part Name&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;and write the column# above.&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="144" style="border: 1px solid #000000; width: 416px; height: 146px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Part Name&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Min of second &lt;SPAN style="font-size: 13.3333px;"&gt;expression&lt;/SPAN&gt;&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;match column#&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;yyy&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1.25&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;rrr&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3.75&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;zzz&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;ttt&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;xxx&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7.5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;The final sort that i want to get is:&lt;/P&gt;&lt;P&gt;yyy&lt;/P&gt;&lt;P&gt;xxx&lt;/P&gt;&lt;P&gt;rrr&lt;/P&gt;&lt;P&gt;zzz&lt;/P&gt;&lt;P&gt;ttt&lt;/P&gt;&lt;P&gt;and to hide the second expression from the pivot table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 07:02:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-horizontal-pivot-table-with-2-dimensions/m-p/1101510#M365359</guid>
      <dc:creator>eliko_il</dc:creator>
      <dc:date>2016-05-19T07:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort horizontal pivot table with 2 dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-horizontal-pivot-table-with-2-dimensions/m-p/1101511#M365360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how to solve this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 14:38:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-horizontal-pivot-table-with-2-dimensions/m-p/1101511#M365360</guid>
      <dc:creator>eliko_il</dc:creator>
      <dc:date>2016-05-23T14:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort horizontal pivot table with 2 dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-horizontal-pivot-table-with-2-dimensions/m-p/1101512#M365361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look here: &lt;A href="https://community.qlik.com/docs/DOC-7220"&gt;Perfectly Sorting Pivot Table (by A-Z. y-Value set for each dim-level)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 07:16:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-horizontal-pivot-table-with-2-dimensions/m-p/1101512#M365361</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-05-24T07:16:43Z</dc:date>
    </item>
  </channel>
</rss>

