<?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 a pivot table - or change to straight table - but how? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-a-pivot-table-or-change-to-straight-table-but-how/m-p/734718#M263046</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I hope &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;201407 is the latest month&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sort by expression will be&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;For Latest month =Sum({&amp;lt;Month={$(=Max(Month))}&amp;gt;}Revenue)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;For First month &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=Sum({&amp;lt;Month={$(=Min(Month))}&amp;gt;}Revenue)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hope this helps&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Aug 2014 09:07:47 GMT</pubDate>
    <dc:creator>CELAMBARASAN</dc:creator>
    <dc:date>2014-08-25T09:07:47Z</dc:date>
    <item>
      <title>Sorting a pivot table - or change to straight table - but how?</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-a-pivot-table-or-change-to-straight-table-but-how/m-p/734717#M263045</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 to modify an existing pivot table to sort the revenue per customer and month. If I select only one month, it is working:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="pivot1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/65112_pivot1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select more than one month, the revenue is not sorted anymore. How can I achieve this (sample app attached)?&lt;/P&gt;&lt;P&gt;So the goal would be to have for the lastest month (201406) the following order&lt;/P&gt;&lt;P&gt;23.070,04&lt;/P&gt;&lt;P&gt;14.003,29&lt;/P&gt;&lt;P&gt;13.433,09&lt;/P&gt;&lt;P&gt;etc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="pivot2.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/65113_pivot2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 08:56:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-a-pivot-table-or-change-to-straight-table-but-how/m-p/734717#M263045</guid>
      <dc:creator />
      <dc:date>2014-08-25T08:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a pivot table - or change to straight table - but how?</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-a-pivot-table-or-change-to-straight-table-but-how/m-p/734718#M263046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I hope &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;201407 is the latest month&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sort by expression will be&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;For Latest month =Sum({&amp;lt;Month={$(=Max(Month))}&amp;gt;}Revenue)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;For First month &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=Sum({&amp;lt;Month={$(=Min(Month))}&amp;gt;}Revenue)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hope this helps&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 09:07:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-a-pivot-table-or-change-to-straight-table-but-how/m-p/734718#M263046</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2014-08-25T09:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a pivot table - or change to straight table - but how?</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-a-pivot-table-or-change-to-straight-table-but-how/m-p/734719#M263047</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;To sort all the dimensions in a pivot table you can try adding or operating your expressions, and placing them into the sort by expression box.&lt;/P&gt;&lt;P&gt;(sum({LAST YEAR}revenue)/SUM({THIS YEAR} revenue))-1&lt;/P&gt;&lt;P&gt;Even you can weight them multiplying by some factor.&lt;/P&gt;&lt;P&gt;To sort a pivot table by more than one dimension is something difficult.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In you picture, I see there is a missorder in the first column, then do:&lt;/P&gt;&lt;P&gt;sum({THIS YEAR, min(MONTH) }revenue)&amp;nbsp; --&amp;gt; (Simplified sintax) &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;This may help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 09:14:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-a-pivot-table-or-change-to-straight-table-but-how/m-p/734719#M263047</guid>
      <dc:creator>christian77</dc:creator>
      <dc:date>2014-08-25T09:14:05Z</dc:date>
    </item>
  </channel>
</rss>

