<?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 Pivot table sorting not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833814#M293355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attaching a sample application where I want the user to select any 1 measure from the listbox and the pivot table should get sorted accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/166222"&gt;morganaaron&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Ankita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 May 2015 07:50:56 GMT</pubDate>
    <dc:creator>ankitaag</dc:creator>
    <dc:date>2015-05-22T07:50:56Z</dc:date>
    <item>
      <title>Pivot table sorting not working</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833814#M293355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attaching a sample application where I want the user to select any 1 measure from the listbox and the pivot table should get sorted accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/166222"&gt;morganaaron&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Ankita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 07:50:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833814#M293355</guid>
      <dc:creator>ankitaag</dc:creator>
      <dc:date>2015-05-22T07:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sorting not working</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833815#M293356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks to me like it works. It first sorts on Region, then sorts the Departments within the region and so on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 09:25:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833815#M293356</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-05-22T09:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sorting not working</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833816#M293357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Similar idea. Check out this link: &lt;A href="https://community.qlik.com/message/778798"&gt;Re: Sorting not working&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 09:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833816#M293357</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-22T09:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sorting not working</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833817#M293358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sunindia, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thats the link from my own team mate.. so its not useful for me..Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 10:06:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833817#M293358</guid>
      <dc:creator>ankitaag</dc:creator>
      <dc:date>2015-05-22T10:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sorting not working</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833818#M293359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hahahaha ya I figured that, but I guess the answer still stays the same that the kind of sorting you are looking for might not work with a pivot table. But I will still not pass any judgement and will wait for somebody to may be give you a solution you are looking for &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 10:09:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833818#M293359</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-22T10:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sorting not working</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833819#M293360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Yes I totally agree with that but for Canada Region, Department='', Role='Others' should come first as it has the highest value.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/87275_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 10:09:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833819#M293360</guid>
      <dc:creator>ankitaag</dc:creator>
      <dc:date>2015-05-22T10:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sorting not working</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833820#M293361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunindia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But previously it was working fine and now I have no idea why it is not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 10:10:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833820#M293361</guid>
      <dc:creator>ankitaag</dc:creator>
      <dc:date>2015-05-22T10:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sorting not working</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833821#M293362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh okay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would love it if you can share the solution once you have it pinned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 10:13:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833821#M293362</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-22T10:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sorting not working</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833822#M293363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FYI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/178560"&gt;utkarshgarg&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 14:00:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833822#M293363</guid>
      <dc:creator>ankitaag</dc:creator>
      <dc:date>2015-05-22T14:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sorting not working</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833823#M293364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You sort Role by sum(Amount), and Role '' has the highest value 1033 + 543 + 1222, so it comes first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Amount) will not be considering the preceding dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Think about how it will&amp;nbsp; affect sorting when pivoting Role to the top otherwise)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 14:16:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833823#M293364</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-05-22T14:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sorting not working</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833824#M293365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Swuehl is right.&lt;/P&gt;&lt;P&gt;when sorting role, it sums up amount of&amp;nbsp; each role independent of&amp;nbsp; Region and department.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For sorting to work, &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;do this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace Department sorting expression to :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pick(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; match(Sort,'Quantity','Amount'),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; aggr(sum(Quantity)&amp;nbsp; ,Region),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; aggr(sum(Amount)&amp;nbsp; ,Region)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and Role sorting expression to :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pick(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; match(Sort,'Quantity','Amount'),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; aggr(sum(Quantity)&amp;nbsp; ,Region,Department),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; aggr(sum(Amount)&amp;nbsp; ,Region,Department)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;similarly add Role for user&amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;sorting expression&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 13:12:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833824#M293365</guid>
      <dc:creator>timanshu</dc:creator>
      <dc:date>2015-05-27T13:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sorting not working</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833825#M293366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thankyou for your reply Timanshu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though it is still not working. Lol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 13:26:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833825#M293366</guid>
      <dc:creator>ankitaag</dc:creator>
      <dc:date>2015-05-27T13:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sorting not working</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833826#M293367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Please find attached the app as per your solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 13:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833826#M293367</guid>
      <dc:creator>ankitaag</dc:creator>
      <dc:date>2015-05-27T13:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sorting not working</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833827#M293368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;So now where is sorting wrong. I found the report correctly sorted in attached app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 18:29:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833827#M293368</guid>
      <dc:creator>timanshu</dc:creator>
      <dc:date>2015-05-27T18:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sorting not working</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833828#M293369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what Ankita wants to demonstrate with this sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's different from the original by the way dimension values are related to higher dimensions. For example, each user is related to only one single role. But the sorting issue will only be visible if you have a 1:n relation, e.g. a user is related to more than one role. In Ankita's original post, the empty or blank role shows this issue because it's related to many departments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Timanshu, I don't think your solution will work. Try with a simple sample I've attached (try to sort Field2).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 21:54:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833828#M293369</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-05-27T21:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sorting not working</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833829#M293370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Yes It does not work for the case you provided. I think , Pivot table sorts like a straight table and it does not consider grouping while sorting so that&amp;nbsp; values under different groups sort&amp;nbsp; in different way.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So , any way that could make sorting work in this case?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 06:18:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sorting-not-working/m-p/833829#M293370</guid>
      <dc:creator>timanshu</dc:creator>
      <dc:date>2015-05-28T06:18:03Z</dc:date>
    </item>
  </channel>
</rss>

