<?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 a pivot table by an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-a-pivot-table-by-an-expression/m-p/391753#M562417</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I know you can only sort on the first expression with the sort by Y-value option. You could promote your third expression to first position. That said, sorting in pivot tables is finicky and rather limited.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Feb 2013 08:47:55 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-02-28T08:47:55Z</dc:date>
    <item>
      <title>Sorting a pivot table by an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-a-pivot-table-by-an-expression/m-p/391752#M562416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure this must have been asked before but I have been unable to find a solution to my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pivot table with 2 dimensions; one dimension is a Drill-Down group. &lt;/P&gt;&lt;P&gt;There are 3 expressions, 2 simple sums and the third is the variance of those 2 (a-b).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One dimension (the non-drill-down dim) is vertically on the left, the other dim goes across the top. There is a totals column on the left.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimensions:&lt;/P&gt;&lt;P&gt;Dim1 := Store&lt;/P&gt;&lt;P&gt;Dim2(Drill-Down): = Area &amp;amp; Sub-Area&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressions:&lt;/P&gt;&lt;P&gt;Exp1:= Sum(Sales)&lt;/P&gt;&lt;P&gt;Exp2:= Sum(PlannedSales)&lt;/P&gt;&lt;P&gt;Exp3:= Exp1 – Exp2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They want to sort by the stores with the greates variance between sales and planned sales. I want to sort the 1&lt;SUP&gt;st&lt;/SUP&gt; dimension (store) by the total column of Exp3. I cannot get it to work. I can sort by Exp1 or Exp2 but not Exp1 – Exp2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also if anyone knows a good way of alternating the pivot table dimension BG colour if they could let me know that would be great!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any tips or pointers on getting this to work or is it not posible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I am unable to post my qvw file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 08:42:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-a-pivot-table-by-an-expression/m-p/391752#M562416</guid>
      <dc:creator>thomastc</dc:creator>
      <dc:date>2013-02-28T08:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a pivot table by an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-a-pivot-table-by-an-expression/m-p/391753#M562417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I know you can only sort on the first expression with the sort by Y-value option. You could promote your third expression to first position. That said, sorting in pivot tables is finicky and rather limited.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 08:47:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-a-pivot-table-by-an-expression/m-p/391753#M562417</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-28T08:47:55Z</dc:date>
    </item>
  </channel>
</rss>

