<?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: Pivot table sorting in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-table-sorting/m-p/613764#M682354</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ugennummer_Sort:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * inline&lt;/P&gt;&lt;P&gt;[Ugennummer, Ugennummer_SortOrder&lt;/P&gt;&lt;P&gt;W39,1&lt;/P&gt;&lt;P&gt;W40,2&lt;/P&gt;&lt;P&gt;W41,3&lt;/P&gt;&lt;P&gt;W42,4&lt;/P&gt;&lt;P&gt;W43,5&lt;/P&gt;&lt;P&gt;W44,6&lt;/P&gt;&lt;P&gt;W45,7&lt;/P&gt;&lt;P&gt;W47,8&lt;/P&gt;&lt;P&gt;W48,9&lt;/P&gt;&lt;P&gt;W49,10&lt;/P&gt;&lt;P&gt;W50,11&lt;/P&gt;&lt;P&gt;W51,12&lt;/P&gt;&lt;P&gt;W52,13&lt;/P&gt;&lt;P&gt;W01,14&lt;/P&gt;&lt;P&gt;W02,15&lt;/P&gt;&lt;P&gt;etc to .....&lt;/P&gt;&lt;P&gt;W38,52&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This table will join automatically to your data and act as a reference to the correct sort order. You then sort the Ugennummer by Ugennummer_Sort .... or Max(Ugennummer_Sort).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Apr 2014 12:39:21 GMT</pubDate>
    <dc:creator>Roop</dc:creator>
    <dc:date>2014-04-08T12:39:21Z</dc:date>
    <item>
      <title>Pivot table sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sorting/m-p/613760#M682350</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'm pretty new in the whole Qlikview-world and therefore I might have an simple question - well not simple to me &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;I have created a pivot table which sums students ECTS points for each week every year. (See table below)&lt;/P&gt;&lt;P&gt;As it can be seen the week (ugenummer) is sorted in ascending order, which is correct. But because an academic year goes from september to september the year after, I want to show data starting from week39.&lt;/P&gt;&lt;P&gt;So the sorting has to be week 39 to week 52 and thereafter week 00 to week 38.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody who can tell me how to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm aware of the sort possibility in the properties menu - but it only allows me to sort in ascending or descending order - and not to cut the data at a certain point?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for answers!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Maria&lt;/P&gt;&lt;P&gt;&lt;IMG alt="pivottable2.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/56716_pivottable2.png" style="width: 620px; height: 349px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 11:38:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sorting/m-p/613760#M682350</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-08T11:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sorting/m-p/613761#M682351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Incorporate the year into the sort (as I presume that they are different).&lt;/P&gt;&lt;P&gt;If this is not the case you can create a small reference table that will just have the week numbers and a different sort order. Incorporate that into your application and use the new sort order for your sorting.&lt;/P&gt;&lt;P&gt;Don't forget to use the same field name for ugennummer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 11:44:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sorting/m-p/613761#M682351</guid>
      <dc:creator>Roop</dc:creator>
      <dc:date>2014-04-08T11:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sorting/m-p/613762#M682352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean by "&lt;STRONG&gt;cut the data&lt;/STRONG&gt;"?&lt;/P&gt;&lt;P&gt;What sorting you need?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 12:04:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sorting/m-p/613762#M682352</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2014-04-08T12:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sorting/m-p/613763#M682353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want the pivot table to show week 39 "W39" in the first row and then up to week 52. The row after week 52 should be week 00 - even though I know there aren't any week 00 - (but there is in the data set).&lt;/P&gt;&lt;P&gt;The data is futhermore dynamic and not static - so every week I get another week more in the data set and therefore I should also get another week in the pivot table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 12:21:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sorting/m-p/613763#M682353</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-08T12:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sorting/m-p/613764#M682354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ugennummer_Sort:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * inline&lt;/P&gt;&lt;P&gt;[Ugennummer, Ugennummer_SortOrder&lt;/P&gt;&lt;P&gt;W39,1&lt;/P&gt;&lt;P&gt;W40,2&lt;/P&gt;&lt;P&gt;W41,3&lt;/P&gt;&lt;P&gt;W42,4&lt;/P&gt;&lt;P&gt;W43,5&lt;/P&gt;&lt;P&gt;W44,6&lt;/P&gt;&lt;P&gt;W45,7&lt;/P&gt;&lt;P&gt;W47,8&lt;/P&gt;&lt;P&gt;W48,9&lt;/P&gt;&lt;P&gt;W49,10&lt;/P&gt;&lt;P&gt;W50,11&lt;/P&gt;&lt;P&gt;W51,12&lt;/P&gt;&lt;P&gt;W52,13&lt;/P&gt;&lt;P&gt;W01,14&lt;/P&gt;&lt;P&gt;W02,15&lt;/P&gt;&lt;P&gt;etc to .....&lt;/P&gt;&lt;P&gt;W38,52&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This table will join automatically to your data and act as a reference to the correct sort order. You then sort the Ugennummer by Ugennummer_Sort .... or Max(Ugennummer_Sort).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 12:39:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sorting/m-p/613764#M682354</guid>
      <dc:creator>Roop</dc:creator>
      <dc:date>2014-04-08T12:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sorting/m-p/613765#M682355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Frd...&lt;/P&gt;&lt;P&gt;Create two Variables&lt;/P&gt;&lt;P&gt;Ex:(For 0 to 38)-&amp;gt;Year Of Week&lt;/P&gt;&lt;P&gt;vWeek1&lt;/P&gt;&lt;P&gt;= '&amp;gt;=' &amp;amp; WeekStart(MIn(Date),0) &amp;amp; '&amp;lt;=' &amp;amp;WeekStart(Min(Date),38)&lt;/P&gt;&lt;P&gt;(For 39 to 52)-&amp;gt;Year Of Week&lt;/P&gt;&lt;P&gt;vWeek2&lt;/P&gt;&lt;P&gt;= '&amp;gt;=' &amp;amp; WeekStart(MIn(Date),39) &amp;amp; '&amp;lt;=' &amp;amp;WeekStart(Min(Date),52)&lt;/P&gt;&lt;P&gt;This Is Used In Your Expression &lt;/P&gt;&lt;P&gt;Like:... 1)Sum({&amp;lt;DateField={$(vWeek1)} Field Name) Here Returns 0 to 38 Data are Show&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2)Sum({&amp;lt;DateField={$(vWeek2)} Field Name) Here Returns 39 to 52 Data are Show&lt;/P&gt;&lt;P&gt;I Hope u Try This One Very Helpful to U... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 12:51:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sorting/m-p/613765#M682355</guid>
      <dc:creator>arjunkrishnan</dc:creator>
      <dc:date>2014-04-08T12:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sorting/m-p/613766#M682356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have typed the code in the script and reloaded it. Then in proporties of the table, I have chosen the sort tab and activated ugenummer - activated "expression" and typed max(Ugenummer_sortOrder).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But nothing happens?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="proporties.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/56806_proporties.png" style="width: 620px; height: 349px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 13:03:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sorting/m-p/613766#M682356</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-08T13:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sorting/m-p/613767#M682357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Uncheck the Sort by Text box&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 13:05:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sorting/m-p/613767#M682357</guid>
      <dc:creator>Roop</dc:creator>
      <dc:date>2014-04-08T13:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sorting/m-p/613768#M682358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that Ugennummer should have been Ugenummer as well. (Too many "n"s). That field should be exactly the same as the field in your fact table - Sorry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 13:07:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sorting/m-p/613768#M682358</guid>
      <dc:creator>Roop</dc:creator>
      <dc:date>2014-04-08T13:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sorting/m-p/613769#M682359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/56816_1.png" style="width: 620px; height: 349px;" /&gt;now it is sorting, but in a very starnge way:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 13:21:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sorting/m-p/613769#M682359</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-08T13:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sorting/m-p/613770#M682360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh, I did'nt see that - now it works!!! THANKS!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 13:22:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sorting/m-p/613770#M682360</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-08T13:22:46Z</dc:date>
    </item>
  </channel>
</rss>

