<?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 within a dimension in three dimension pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-within-a-dimension-in-three-dimension-pivot-table/m-p/568932#M212099</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your prompt replies.&amp;nbsp; But I don't think you understand the issue.&amp;nbsp; I need to sort the person dimension based on only the contents of the Qty dimension for a value of 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are able to do this, can you please make changes to the sample file to demonstrate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Mar 2014 21:20:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-13T21:20:26Z</dc:date>
    <item>
      <title>Sorting within a dimension in three dimension pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-within-a-dimension-in-three-dimension-pivot-table/m-p/568929#M212096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&amp;nbsp; I have what I though was a simple problem until I went down the rabbit hole!.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table below (sample data):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sort Issue2.png" class="jive-image" src="/legacyfs/online/54896_Sort Issue2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need to do is sort by the first Qty value.&amp;nbsp; Ie Qty=1.&amp;nbsp; Therefore the order for SL should be: Zane John Peter, or Zane Peter John, and the sort for AL should be John Peter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I though this would be simple by setting the sort for the person dimension to Sum(if(qty=1, qty))&lt;/P&gt;&lt;P&gt;Ie, only include values where the qty dimension is '1'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone offer a suggestion. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance (sample QVW attached).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 06:26:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-within-a-dimension-in-three-dimension-pivot-table/m-p/568929#M212096</guid>
      <dc:creator />
      <dc:date>2014-03-13T06:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting within a dimension in three dimension pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-within-a-dimension-in-three-dimension-pivot-table/m-p/568930#M212097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can use "Ord(expression)"&amp;nbsp; in sort tab Expression,&lt;/P&gt;&lt;P&gt;Then you can get the correct order&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 07:34:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-within-a-dimension-in-three-dimension-pivot-table/m-p/568930#M212097</guid>
      <dc:creator />
      <dc:date>2014-03-13T07:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting within a dimension in three dimension pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-within-a-dimension-in-three-dimension-pivot-table/m-p/568931#M212098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In pivot table, there is no direct option for expression sort. In sort tab, for type and person dimension,add your Quantity expression in expression option and make it as descending.&lt;/P&gt;&lt;P&gt;Hope this will help you...!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 07:44:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-within-a-dimension-in-three-dimension-pivot-table/m-p/568931#M212098</guid>
      <dc:creator />
      <dc:date>2014-03-13T07:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting within a dimension in three dimension pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-within-a-dimension-in-three-dimension-pivot-table/m-p/568932#M212099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your prompt replies.&amp;nbsp; But I don't think you understand the issue.&amp;nbsp; I need to sort the person dimension based on only the contents of the Qty dimension for a value of 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are able to do this, can you please make changes to the sample file to demonstrate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 21:20:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-within-a-dimension-in-three-dimension-pivot-table/m-p/568932#M212099</guid>
      <dc:creator />
      <dc:date>2014-03-13T21:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting within a dimension in three dimension pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-within-a-dimension-in-three-dimension-pivot-table/m-p/568933#M212100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try sorting the person dimension using the expression:&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;Qty = {1}&amp;gt;}Qty)&lt;/P&gt;&lt;P&gt;in Ascending order &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 21:40:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-within-a-dimension-in-three-dimension-pivot-table/m-p/568933#M212100</guid>
      <dc:creator>Josh_Good</dc:creator>
      <dc:date>2014-03-13T21:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting within a dimension in three dimension pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-within-a-dimension-in-three-dimension-pivot-table/m-p/568934#M212101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thinking on this further.&amp;nbsp; My solution only worked because of a quirk in your data.&amp;nbsp; I don't believe it is possible to have a different sort order for a dimension nested inside another dimension.&amp;nbsp; Zane keeps coming when sorting in descending order because he has the least qty for Qty = 1 overall.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 21:54:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-within-a-dimension-in-three-dimension-pivot-table/m-p/568934#M212101</guid>
      <dc:creator>Josh_Good</dc:creator>
      <dc:date>2014-03-13T21:54:53Z</dc:date>
    </item>
  </channel>
</rss>

