<?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 sort order in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-table-sort-order/m-p/1418058#M812924</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using an expression on the sort tab? May be you need to add {1} in set analysis of the sort expression also&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Sep 2017 14:02:09 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-09-26T14:02:09Z</dc:date>
    <item>
      <title>Pivot table sort order</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sort-order/m-p/1418057#M812923</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 made a pivot table where Month dimension is sorted using Month_sort dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(1&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 'YMMM')) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month_sort;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; Month, &lt;SPAN style="color: #800000;"&gt;Month_sort&lt;/SPAN&gt;&lt;BR /&gt; Jan, 7&lt;BR /&gt; Feb, 8&lt;BR /&gt; Mar, 9&lt;BR /&gt; Apr, 10&lt;BR /&gt; May, 11&lt;BR /&gt; Jun, 12&lt;BR /&gt; Jul, 1&lt;BR /&gt; Aug, 2&lt;BR /&gt; Sep, 3&lt;BR /&gt; Oct, 4&lt;BR /&gt; Nov, 5&lt;BR /&gt; Dec, 6&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should mention that I am using an expresion with a modification of sum({1} 1) in one of my expressions so that the table does not collapse when using filters (all rows should be seen at all times). However when I am using Month filter the selected month "moves" to the most right of the table and the sorting does not seem to be working anymore. How can I fix it?&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>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sort-order/m-p/1418057#M812923</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sort order</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sort-order/m-p/1418058#M812924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using an expression on the sort tab? May be you need to add {1} in set analysis of the sort expression also&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 14:02:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sort-order/m-p/1418058#M812924</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-26T14:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sort order</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sort-order/m-p/1418059#M812925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a sort order properties you can try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only( &lt;STRONG&gt;{1}&lt;/STRONG&gt; Match(&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.6667px;"&gt;Month_sort,7,8,9,10,11,12,1,2,3,4,5,6) )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 14:06:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sort-order/m-p/1418059#M812925</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-09-26T14:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sort order</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sort-order/m-p/1418060#M812926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using this: =Month_sort&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain how to use {1}?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 14:07:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sort-order/m-p/1418060#M812926</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-26T14:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sort order</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sort-order/m-p/1418061#M812927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried your suggestion. Month order in the table changes to Jan, Feb, Mar... without filters.&lt;/P&gt;&lt;P&gt;Is the syntax correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 14:16:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sort-order/m-p/1418061#M812927</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-26T14:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sort order</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sort-order/m-p/1418062#M812928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Only({1} Month_sort)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 14:16:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sort-order/m-p/1418062#M812928</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-26T14:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sort order</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sort-order/m-p/1418063#M812929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BTW,&lt;/P&gt;&lt;P&gt;with following kind of Statement you can make your sortorder dynamic and wont need to manually adjust it every month:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15064358796745406" jivemacro_uid="_15064358796745406" modifiedtitle="true"&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;Month(Date#(Month, 'MMM')) as Month,&lt;/P&gt;
&lt;P&gt;Mod(Month(Date#(Month, 'MMM'))-(Month(Today())-2),12)+1 as Sortorder;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOAD * Inline [&lt;/P&gt;
&lt;P&gt;Month,&lt;/P&gt;
&lt;P&gt;Jan&lt;/P&gt;
&lt;P&gt;Feb&lt;/P&gt;
&lt;P&gt;Mar&lt;/P&gt;
&lt;P&gt;Apr&lt;/P&gt;
&lt;P&gt;May&lt;/P&gt;
&lt;P&gt;Jun&lt;/P&gt;
&lt;P&gt;Jul&lt;/P&gt;
&lt;P&gt;Aug&lt;/P&gt;
&lt;P&gt;Sep&lt;/P&gt;
&lt;P&gt;Oct&lt;/P&gt;
&lt;P&gt;Nov&lt;/P&gt;
&lt;P&gt;Dec&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 14:25:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sort-order/m-p/1418063#M812929</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2017-09-26T14:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sort order</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sort-order/m-p/1418064#M812930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it seems&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Only( {1} Match(Month_sort,'7','8','9','10','11','12','1','2','3','4','5','6') )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Or&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//This works perfect&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Only( {1} Month_sort )&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 17:02:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sort-order/m-p/1418064#M812930</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-09-26T17:02:33Z</dc:date>
    </item>
  </channel>
</rss>

