<?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 on the pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-on-the-pivot-table/m-p/783941#M277484</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not possible. And it is not a limitation of QlikView - it is a consequence of the properties of a pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A pivot table is always sorted first after the first dimension, then the second dimension, etc. This is necessary since the rows are &lt;EM&gt;grouped &lt;/EM&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;first after the first dimension, then the second dimension, etc. If you want to sort after an expression, you should use a straight table instead.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An other aspect is that you try to sort the "Document number" after "Row". But this is not possible since a document can have several row numbers. See also &lt;A href="https://community.qlik.com/qlik-blogpost/3779"&gt;Use Aggregation Functions!&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;HIC &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Mar 2015 20:59:54 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2015-03-24T20:59:54Z</dc:date>
    <item>
      <title>Sorting on the pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-on-the-pivot-table/m-p/783939#M277482</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 have an issue with the pivot table sorting. . i have Row fields which need to be arranged in the ascending&amp;nbsp; order..&lt;/P&gt;&lt;P&gt;when i use that field in the expression of sort order its not working as expected.&lt;/P&gt;&lt;P&gt;Could someone look into this issue.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Issue1.png" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/81753_Issue1.png" style="height: 178px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt; PFA the sample file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 20:46:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-on-the-pivot-table/m-p/783939#M277482</guid>
      <dc:creator>shree909</dc:creator>
      <dc:date>2015-03-24T20:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting on the pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-on-the-pivot-table/m-p/783940#M277483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your request contradicts the nature of the pivot table.&amp;nbsp; Or, you have to move the column further to the left, before the rows start splitting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 20:52:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-on-the-pivot-table/m-p/783940#M277483</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-24T20:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting on the pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-on-the-pivot-table/m-p/783941#M277484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not possible. And it is not a limitation of QlikView - it is a consequence of the properties of a pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A pivot table is always sorted first after the first dimension, then the second dimension, etc. This is necessary since the rows are &lt;EM&gt;grouped &lt;/EM&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;first after the first dimension, then the second dimension, etc. If you want to sort after an expression, you should use a straight table instead.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An other aspect is that you try to sort the "Document number" after "Row". But this is not possible since a document can have several row numbers. See also &lt;A href="https://community.qlik.com/qlik-blogpost/3779"&gt;Use Aggregation Functions!&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;HIC &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 20:59:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-on-the-pivot-table/m-p/783941#M277484</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-03-24T20:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting on the pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-on-the-pivot-table/m-p/783942#M277485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found some unusual things in your example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like 'beginning balance' is a data value in the Month/Year dimension that otherwise has MMM-YYYY values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/81772_Capture.PNG" style="height: 81px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;On the sort tab, i removed all sorts on all the first dimensions up to month/year which i switched to expression as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ( [Month/Year]='Beginning Balance',1,2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then i removed sorts on all subsequent sorts up to materialdocitem which has unique values (seemingly) where i put sort on Row &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/81773_Capture2.PNG" style="height: 155px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seemed to 'survive' the need...&amp;nbsp; subrows sorted within blocks etc...&amp;nbsp;&amp;nbsp; but please heed the wise advice above for doing this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 21:05:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-on-the-pivot-table/m-p/783942#M277485</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-03-24T21:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting on the pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-on-the-pivot-table/m-p/783943#M277486</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;May be this might help&lt;/P&gt;&lt;P&gt;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 22:21:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-on-the-pivot-table/m-p/783943#M277486</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2015-03-24T22:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting on the pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-on-the-pivot-table/m-p/783944#M277487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You&amp;nbsp; can&amp;nbsp; to try&amp;nbsp; change&amp;nbsp; pivot&amp;nbsp; table&amp;nbsp; to a&amp;nbsp; straight&amp;nbsp; table and&amp;nbsp; Properties Tab Sort&amp;nbsp; you&amp;nbsp; will promote field&amp;nbsp; row how&amp;nbsp; on&amp;nbsp; first place.&lt;IMG alt="1.1.PNG" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/81768_1.1.PNG" style="height: 96px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/81769_1.2.PNG" style="height: 74px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 22:40:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-on-the-pivot-table/m-p/783944#M277487</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-24T22:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting on the pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-on-the-pivot-table/m-p/783945#M277488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I totally Agree with henric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 05:48:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-on-the-pivot-table/m-p/783945#M277488</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-25T05:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting on the pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-on-the-pivot-table/m-p/783946#M277489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Personally I totally disagree since this is something Excel does and I don't see a valid reason why Qlik Sense shouldn't do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 09:49:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-on-the-pivot-table/m-p/783946#M277489</guid>
      <dc:creator>paolo_mapelli</dc:creator>
      <dc:date>2017-12-18T09:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting on the pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-on-the-pivot-table/m-p/783947#M277490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;A href="https://community.qlik.com/qlik-users/179276"&gt;paolo.mapelli&lt;/A&gt;‌&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;A pivot table is always sorted from left to right - that's part of the nature of the grouping of a pivot table. So then the last dimension can obviously not be sorted before the previous ones. &lt;/SPAN&gt;The obvious alternative is to use a straight table. Then you lose the grouping, but can sort it any way you want. &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;IMG alt="QlikSense.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/187590_QlikSense.png" style="height: 262px; width: 620px;" /&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;An additional alternative is to use the pivot table, but promote the Row number so that it isn't the last dimension.&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;IMG alt="AltPivot.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/187591_AltPivot.png" style="height: 124px; width: 620px;" /&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;It sounds to me as if you want a pivot table that sometimes groups the values, and sometimes not, which would be illogical and counter-intuitive. Like the mock-up below where one single document number appears twice under the same date.&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;&lt;IMG alt="QuirkyPivot.png" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/187592_QuirkyPivot.png" style="height: 99px; width: 620px;" /&gt;&lt;BR /&gt;&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;But I might be wrong, so could I ask you to elaborate on what you think Qlik Sense should be able to do, apart from what it already can? &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;HIC&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 17:35:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-on-the-pivot-table/m-p/783947#M277490</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2017-12-19T17:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting on the pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-on-the-pivot-table/m-p/783948#M277491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Generally speaking, ordering and grouping (IMHO) are two distinct concepts. For example in SQL you can GROUP BY, then ORDER BY.&lt;/P&gt;&lt;P&gt;As I wrote, I would like to have something that Excel does:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Clipboard01.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/187655_Clipboard01.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;That is something you can have also in Sense if you order by AGGR(SUM(&amp;lt;measure&amp;gt;),&amp;lt;dim1&amp;gt;,&amp;lt;dim2&amp;gt;).&lt;/P&gt;&lt;P&gt;Of course there's the "limitation" to be a web application: visualization is different from elaboration, so if you drag &amp;lt;dim2&amp;gt; before &amp;lt;dim1&amp;gt; ordering isn't recalculated.&lt;/P&gt;&lt;P&gt;But many times pivot are useful just to have something that groups items by hierarchical dimensions and in those situations it'll be enough to have a "locked" pivot table, with undraggable dimensions.&lt;/P&gt;&lt;P&gt;So, getting back to your question: "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;what you think Qlik Sense should be able to do, apart from what it already can?&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;Apart of what above (probably impossible since the "web nature" of Sense), a simple "Lock Table Dimensions" option in pivot table properties would be nice to have. In this way I would be able to setup a "fixed and hierarchical" pivot and order by a measure, with ordering always correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paolo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 08:16:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-on-the-pivot-table/m-p/783948#M277491</guid>
      <dc:creator>paolo_mapelli</dc:creator>
      <dc:date>2017-12-20T08:16:16Z</dc:date>
    </item>
  </channel>
</rss>

