<?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 issues with sorting pivot tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/issues-with-sorting-pivot-tables/m-p/284051#M105553</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pivot table that shows customers and their sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has 3 dimensions, customer code, customer name and calendar month. The calendar month has been pivoted so it goes across the page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to have the user sort this table by either customer code or customer name, in either ascending or descending order. I have got a macro that works a treat for the customer code (as it is the first dimension), but I can't get it to sort by the 2nd column. I assumed this was because it was a pivot table, so I am trying to sort column 1 using an expression, but just can't get it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the customer code sort area I have only got sort by expression ticked, and I have tried a couple of expressions (which if I add as an expression within the table it shows me the result I am after, it just wont sort on it). The one I found that looked like it should have worked was: ﻿pick(1,customerName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone got any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Josh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Aug 2011 02:17:09 GMT</pubDate>
    <dc:creator>diffeyj</dc:creator>
    <dc:date>2011-08-19T02:17:09Z</dc:date>
    <item>
      <title>issues with sorting pivot tables</title>
      <link>https://community.qlik.com/t5/QlikView/issues-with-sorting-pivot-tables/m-p/284051#M105553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pivot table that shows customers and their sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has 3 dimensions, customer code, customer name and calendar month. The calendar month has been pivoted so it goes across the page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to have the user sort this table by either customer code or customer name, in either ascending or descending order. I have got a macro that works a treat for the customer code (as it is the first dimension), but I can't get it to sort by the 2nd column. I assumed this was because it was a pivot table, so I am trying to sort column 1 using an expression, but just can't get it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the customer code sort area I have only got sort by expression ticked, and I have tried a couple of expressions (which if I add as an expression within the table it shows me the result I am after, it just wont sort on it). The one I found that looked like it should have worked was: ﻿pick(1,customerName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone got any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Josh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 02:17:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/issues-with-sorting-pivot-tables/m-p/284051#M105553</guid>
      <dc:creator>diffeyj</dc:creator>
      <dc:date>2011-08-19T02:17:09Z</dc:date>
    </item>
    <item>
      <title>issues with sorting pivot tables</title>
      <link>https://community.qlik.com/t5/QlikView/issues-with-sorting-pivot-tables/m-p/284052#M105554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi&lt;/P&gt;&lt;P&gt; Its difficult to sort in Pivot table.Use straight table for better sorting as per your requirment.&lt;/P&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;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Regards&lt;/P&gt;&lt;P&gt;Kaushal Mehta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 04:20:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/issues-with-sorting-pivot-tables/m-p/284052#M105554</guid>
      <dc:creator>kaushalview</dc:creator>
      <dc:date>2011-08-19T04:20:02Z</dc:date>
    </item>
  </channel>
</rss>

