<?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 Double sorting in Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Double-sorting-in-Pivot-Table/m-p/176667#M44583</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But it already works in your dashboard if you would treat it in appropriate way. All what you need is just pick one country only. See attachment. I've updated it a little bit &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Nov 2010 21:36:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-11-08T21:36:21Z</dc:date>
    <item>
      <title>Double sorting in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Double-sorting-in-Pivot-Table/m-p/176659#M44575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to sort two dimensions with expression in a pivot table.&lt;/P&gt;&lt;P&gt;I've 3 dimensions : Country, Product, Year and 1 expression Sum(Sales).&lt;/P&gt;&lt;P&gt;Country I Product I Year 2010 I Year 2009.&lt;/P&gt;&lt;P&gt;I would like to sort Country by Year 2010 (sum({&amp;lt;Year={2010}&amp;gt;] and sort Product by Year2010.&lt;/P&gt;&lt;P&gt;The sort by country is Ok but it doesn't sort by Product.&lt;/P&gt;&lt;P&gt;Can you help me ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 19:12:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-sorting-in-Pivot-Table/m-p/176659#M44575</guid>
      <dc:creator />
      <dc:date>2010-11-08T19:12:51Z</dc:date>
    </item>
    <item>
      <title>Double sorting in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Double-sorting-in-Pivot-Table/m-p/176660#M44576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming you are using the sort by expression in the Sort tab and that the expression is sum({$&amp;lt;Year={2010}&amp;gt;} Sales) for both dimensions then I don't see a problem with this.&lt;/P&gt;&lt;P&gt;Post a screenshot of what the table looks like.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 19:34:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-sorting-in-Pivot-Table/m-p/176660#M44576</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-11-08T19:34:52Z</dc:date>
    </item>
    <item>
      <title>Double sorting in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Double-sorting-in-Pivot-Table/m-p/176661#M44577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it is exactly what I've done but the sort is not good on the Product. It only work on the first Dimension&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 20:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-sorting-in-Pivot-Table/m-p/176661#M44577</guid>
      <dc:creator />
      <dc:date>2010-11-08T20:42:54Z</dc:date>
    </item>
    <item>
      <title>Double sorting in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Double-sorting-in-Pivot-Table/m-p/176662#M44578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works as it should. See the attachment. Your products are sorted by the expression in descending order.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 21:05:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-sorting-in-Pivot-Table/m-p/176662#M44578</guid>
      <dc:creator />
      <dc:date>2010-11-08T21:05:28Z</dc:date>
    </item>
    <item>
      <title>Double sorting in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Double-sorting-in-Pivot-Table/m-p/176663#M44579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I gather you want your Product list to be sorted differently for each Country? Pivot tables currently do not sort that way. Every Country will have the Product list sorted the same. The product list IS sorted by sum({&amp;lt;Annee={'2010'}&amp;gt;} CA), but for the total across all countries, not within each country.&lt;/P&gt;&lt;P&gt;There is an open request to add an option to QlikView to allow it to sort in context. In your case, such an option would allow you to sort differently by Product within each Country. So far as I know, there is no way to do it presently. I do not know if there is any new option in version 10. I'm on version 9 SR6.&lt;/P&gt;&lt;P&gt;Here's the link to the request on the customer portal. If you have access to it, you could vote for it, and perhaps they'll address it some day.&lt;/P&gt;&lt;P&gt;&lt;A href="https://emea.salesforce.com/ideas/viewIdea.apexp?id=087200000008T02"&gt;https://emea.salesforce.com/ideas/viewIdea.apexp?id=087200000008T02&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 21:17:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-sorting-in-Pivot-Table/m-p/176663#M44579</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-11-08T21:17:51Z</dc:date>
    </item>
    <item>
      <title>Double sorting in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Double-sorting-in-Pivot-Table/m-p/176664#M44580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Product are sorted by Sum(Sales) for Year 2010.&lt;/P&gt;&lt;P&gt;But i would like to sort product for each country : Product 100 should be first in country 2 and Third in country 1.&lt;/P&gt;&lt;P&gt;How can i do that ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 21:23:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-sorting-in-Pivot-Table/m-p/176664#M44580</guid>
      <dc:creator />
      <dc:date>2010-11-08T21:23:04Z</dc:date>
    </item>
    <item>
      <title>Double sorting in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Double-sorting-in-Pivot-Table/m-p/176665#M44581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok thanks John.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 21:27:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-sorting-in-Pivot-Table/m-p/176665#M44581</guid>
      <dc:creator />
      <dc:date>2010-11-08T21:27:08Z</dc:date>
    </item>
    <item>
      <title>Double sorting in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Double-sorting-in-Pivot-Table/m-p/176666#M44582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;It still doesn't work in version 10 either (10.00.8715.5 IR)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 21:32:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-sorting-in-Pivot-Table/m-p/176666#M44582</guid>
      <dc:creator />
      <dc:date>2010-11-08T21:32:46Z</dc:date>
    </item>
    <item>
      <title>Double sorting in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Double-sorting-in-Pivot-Table/m-p/176667#M44583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But it already works in your dashboard if you would treat it in appropriate way. All what you need is just pick one country only. See attachment. I've updated it a little bit &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 21:36:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-sorting-in-Pivot-Table/m-p/176667#M44583</guid>
      <dc:creator />
      <dc:date>2010-11-08T21:36:21Z</dc:date>
    </item>
    <item>
      <title>Double sorting in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Double-sorting-in-Pivot-Table/m-p/176668#M44584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it if you make an expression for each year and sort by the y-value like the attached example.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 21:40:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-sorting-in-Pivot-Table/m-p/176668#M44584</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-11-08T21:40:23Z</dc:date>
    </item>
    <item>
      <title>Double sorting in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Double-sorting-in-Pivot-Table/m-p/176669#M44585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Karl Pover wrote:You can do it if you make an expression for each year and sort by the y-value like the attached example.&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Huh. I would not have expected that to fix the problem. I'll need to keep that in mind.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 22:04:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-sorting-in-Pivot-Table/m-p/176669#M44585</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-11-08T22:04:54Z</dc:date>
    </item>
    <item>
      <title>Double sorting in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Double-sorting-in-Pivot-Table/m-p/176670#M44586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karl, i'll use your solution.&lt;/P&gt;&lt;P&gt;Thanks to all of you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 22:09:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-sorting-in-Pivot-Table/m-p/176670#M44586</guid>
      <dc:creator />
      <dc:date>2010-11-08T22:09:49Z</dc:date>
    </item>
    <item>
      <title>Double sorting in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Double-sorting-in-Pivot-Table/m-p/176671#M44587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;Am I wrong or is this not also true of straight tables?&lt;/P&gt;&lt;P&gt;I posted my problem earlier and Nick Bor directed me to this post.&lt;/P&gt;&lt;P&gt;This is a basic list function that really needs to be supported. How then can we rank major dimension groups and the rank minor dimension groups within the major group?&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 19:25:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-sorting-in-Pivot-Table/m-p/176671#M44587</guid>
      <dc:creator />
      <dc:date>2010-11-11T19:25:59Z</dc:date>
    </item>
    <item>
      <title>Double sorting in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Double-sorting-in-Pivot-Table/m-p/176672#M44588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Richard DeRocco wrote:Am I wrong or is this not also true of straight tables?&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;If I understand your question, no, it's not true of straight tables. To demonstrate this to yourself, just pull up the testExpressionSort.qvw that Nick posted. Convert the top chart into a straight table. Double click on Sales, then double click on Country, then double click on year. The products are now sorted differently within the context of the other dimensions.&lt;/P&gt;&lt;P&gt;With the pivot table, you can only sort by the dimensions, not by dimensions OR expressions. You CAN enter an expression to sort by, but that expression is always evaluated globally. There is no option to only evaluate that expression in context.&lt;/P&gt;&lt;P&gt;This is making me think, though, that the solution might be simpler than a "sort in context?" checkbox or the like. Now it seems like all we need to do is use the straight table version of sorting. In other words, put the expressions on the sort tab too, not just the dimensions. I haven't thought that through. They may be excluded for something having to do with our ability to put dimensions on either the left or on top. Not sure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 20:08:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-sorting-in-Pivot-Table/m-p/176672#M44588</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-11-11T20:08:08Z</dc:date>
    </item>
    <item>
      <title>Double sorting in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Double-sorting-in-Pivot-Table/m-p/176673#M44589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually John the problem that lead me here was a bit different:&lt;/P&gt;&lt;P&gt;I'm working on a complex chart involving multiple dimensions and sorting within those dimensions. I was getting strange sequence results.&lt;/P&gt;&lt;P&gt;So I did a test on a very simple chart and was able to duplicate the problem in a simple pivot table with two dimensions and one expression -- sum (Sales).&lt;/P&gt;&lt;P&gt;I'm sorting dimension 1 using the expression -- SUM (TOTAL &amp;lt;DIMENSION1&amp;gt; Sales) works fine&lt;/P&gt;&lt;P&gt;I've tried several different expressions for the sort of dimension 2 including --SUM(TOTAL &amp;lt;DIMENSION1, DIMENSION2&amp;gt; (Sales) yielding the same results but for simplicity I'll stick with -- SUM (Sales) for the expression sort of Dimension 2.&lt;/P&gt;&lt;P&gt;In short I'm trying to sort the chart first by the decending value of sales for dimension 1 and then sorting Dimension 2 decending within the sorted dimension 1&lt;/P&gt;&lt;P&gt;When I make no selection in Dimension1 occasionally some of the rows of dimension 2 are out of the decending value sequence within Dimension1. If I make a selection of dimension 1 the results are correctly sorted for dimension 2. I've also gone back and changed my chart to a straight table with the same results. I can't get my head around why that is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 20:28:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-sorting-in-Pivot-Table/m-p/176673#M44589</guid>
      <dc:creator />
      <dc:date>2010-11-11T20:28:36Z</dc:date>
    </item>
  </channel>
</rss>

