<?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: Sorting of a pivot table (different sorting if two dimensions) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-of-a-pivot-table-different-sorting-if-two-dimensions/m-p/316049#M500568</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to QlikView Reference manual, 'Pivot tables can only be sorted by some property of the first column.'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 May 2011 14:32:35 GMT</pubDate>
    <dc:creator>nagaiank</dc:creator>
    <dc:date>2011-05-20T14:32:35Z</dc:date>
    <item>
      <title>Sorting of a pivot table (different sorting if two dimensions)</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-of-a-pivot-table-different-sorting-if-two-dimensions/m-p/316046#M500565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a pivot table with two dimensions and two formulas:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First dimension: Item Category&lt;/P&gt;&lt;P&gt;Second dimension: Customer&lt;/P&gt;&lt;P&gt;First formula: Sum(Sales)&lt;/P&gt;&lt;P&gt;Second formula: Sum(Quantity)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sorting of the first dimension should be by loading order (or alphabetical).&lt;/P&gt;&lt;P&gt;The sorting of the second dimension should be by the first formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I tried:&lt;/P&gt;&lt;P&gt;1) "Sort by y-Value": Sorts both dimensions by Sum(Sales) =&amp;gt; Not what I want.&lt;/P&gt;&lt;P&gt;2) "Sort by Expression" for the second dimension: "Sum(Sales)" =&amp;gt; Sorts the customers depending on there total Sales disregarding the first dimension =&amp;gt; Again not what I want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question: Is there a way to tell QV that the "sort by expression" should consider the first dimension? Or is that what I want just something QV can't handle?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance and regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2011 13:25:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-of-a-pivot-table-different-sorting-if-two-dimensions/m-p/316046#M500565</guid>
      <dc:creator />
      <dc:date>2011-05-20T13:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting of a pivot table (different sorting if two dimensions)</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-of-a-pivot-table-different-sorting-if-two-dimensions/m-p/316047#M500566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An example with different sort order for the two dimensions ia attached. Is this what you want to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2011 14:07:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-of-a-pivot-table-different-sorting-if-two-dimensions/m-p/316047#M500566</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2011-05-20T14:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting of a pivot table (different sorting if two dimensions)</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-of-a-pivot-table-different-sorting-if-two-dimensions/m-p/316048#M500567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Your example describes the problem but unfortunalety not the solution &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Example.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/4652_Example.jpg" /&gt;&lt;/P&gt;&lt;P&gt;Customer B has the highest Sales overall (900 + 700 = 1600). That's why he is in first place for both Categories.&lt;/P&gt;&lt;P&gt;What I want is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 - A - 1100&lt;/P&gt;&lt;P&gt;1 - B - 900&lt;/P&gt;&lt;P&gt;1 - C - 750&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 - B - 700&lt;/P&gt;&lt;P&gt;2 - C - 500&lt;/P&gt;&lt;P&gt;2 - A - 400&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the customers should be sorted by sales for each category different.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2011 14:15:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-of-a-pivot-table-different-sorting-if-two-dimensions/m-p/316048#M500567</guid>
      <dc:creator />
      <dc:date>2011-05-20T14:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting of a pivot table (different sorting if two dimensions)</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-of-a-pivot-table-different-sorting-if-two-dimensions/m-p/316049#M500568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to QlikView Reference manual, 'Pivot tables can only be sorted by some property of the first column.'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2011 14:32:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-of-a-pivot-table-different-sorting-if-two-dimensions/m-p/316049#M500568</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2011-05-20T14:32:35Z</dc:date>
    </item>
  </channel>
</rss>

