<?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 Sub Sort in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Sub-Sort/m-p/249373#M94766</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;I have a pivot table which looks like the following (please excuse the data - this is sample data)....&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Pivot Sort.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/7860_Pivot+Sort.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is currently sorted by the 3rd column (31/07/2004 sales) using the following expression...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(IF(dor_OrderDate = varToday), sls_SalesAmount))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to do is first of all sort by the expression above then, for the accounts that do not have sales today, sort by their decending months sales i.e. 6th Column (Jul-2004 Sales).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(IF(Month(dor_OrderDate = Month(varToday), sls_SalesAmount))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;Is this possible?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;Paul&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Oct 2011 10:15:58 GMT</pubDate>
    <dc:creator>pkelly</dc:creator>
    <dc:date>2011-10-14T10:15:58Z</dc:date>
    <item>
      <title>Pivot Table Sub Sort</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Sub-Sort/m-p/249373#M94766</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;I have a pivot table which looks like the following (please excuse the data - this is sample data)....&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Pivot Sort.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/7860_Pivot+Sort.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is currently sorted by the 3rd column (31/07/2004 sales) using the following expression...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(IF(dor_OrderDate = varToday), sls_SalesAmount))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to do is first of all sort by the expression above then, for the accounts that do not have sales today, sort by their decending months sales i.e. 6th Column (Jul-2004 Sales).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(IF(Month(dor_OrderDate = Month(varToday), sls_SalesAmount))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;Is this possible?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;Paul&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 10:15:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Sub-Sort/m-p/249373#M94766</guid>
      <dc:creator>pkelly</dc:creator>
      <dc:date>2011-10-14T10:15:58Z</dc:date>
    </item>
  </channel>
</rss>

