<?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: how to sort a cyclic group in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-sort-a-cyclic-group/m-p/1457612#M435483</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;You have to apply the sorting in Group Settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit the Group Like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sort order.PNG" class="jive-image image-1" src="/legacyfs/online/188684_Sort order.PNG" style="height: 574px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jan 2018 10:08:26 GMT</pubDate>
    <dc:creator>mdmukramali</dc:creator>
    <dc:date>2018-01-03T10:08:26Z</dc:date>
    <item>
      <title>how to sort a cyclic group</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-sort-a-cyclic-group/m-p/1457611#M435482</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;A pivot tabel is &lt;SPAN style="font-size: 13.3333px;"&gt;based on a table with the fields:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="130" style="border: 1px solid rgb(255, 255, 255); width: 329px; height: 123px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Region (Text)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Month (Integer)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Year &lt;SPAN style="font-size: 13.3333px;"&gt;(Integer)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Amount &lt;SPAN style="font-size: 13.3333px;"&gt;(Integer)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;IMG alt="Table.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/188678_Table.png" style="height: auto;" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The &lt;SPAN style="text-decoration: underline;"&gt;dimensions&lt;/SPAN&gt; are:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Region&lt;/STRONG&gt; (Field)&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Year_Month&lt;/STRONG&gt; (Cyclic Group)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The cyclic group &lt;STRONG style="font-size: 13.3333px;"&gt;Year_Month &lt;/STRONG&gt;consist of two fields:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;Year&lt;/STRONG&gt; with label &lt;EM&gt;Year&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;=Num(Month, '00') &amp;amp; '/' &amp;amp; Num(Year, '0000')&lt;/STRONG&gt; with label &lt;EM&gt;Month&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;SPAN style="text-decoration: underline;"&gt;expression&lt;/SPAN&gt; is:&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;(&lt;SPAN style="color: #993300;"&gt;Amount&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dimension &lt;STRONG style="font-size: 13.3333px;"&gt;Year_Month &lt;/STRONG&gt;is pivoted&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get this result:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Unsorted.png" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/188679_Unsorted.png" style="height: 33px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;The dimension &lt;STRONG style="font-size: 13.3333px;"&gt;Year_Month &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;is not sorted: 01/2018, 12/2017, 07/2017, 11/2017, ....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I want this result:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;IMG alt="Sorted.png" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/188680_Sorted.png" style="height: 33px; width: 620px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The dimension &lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Year_Month &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;should be sorted per year and in the same year per month:&lt;BR /&gt;01/2016, 02/2016, 03/2016, .... 12/2017, 01/2018&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;How can this be done?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;In attachment my example Cyclic_Group_Order.qvw&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;R.W.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2018 10:03:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-sort-a-cyclic-group/m-p/1457611#M435482</guid>
      <dc:creator>rudywelvaert</dc:creator>
      <dc:date>2018-01-03T10:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to sort a cyclic group</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-sort-a-cyclic-group/m-p/1457612#M435483</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;You have to apply the sorting in Group Settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit the Group Like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sort order.PNG" class="jive-image image-1" src="/legacyfs/online/188684_Sort order.PNG" style="height: 574px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2018 10:08:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-sort-a-cyclic-group/m-p/1457612#M435483</guid>
      <dc:creator>mdmukramali</dc:creator>
      <dc:date>2018-01-03T10:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to sort a cyclic group</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-sort-a-cyclic-group/m-p/1457613#M435484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/188683_Capture.JPG" style="height: 255px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2018 10:12:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-sort-a-cyclic-group/m-p/1457613#M435484</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-01-03T10:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to sort a cyclic group</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-sort-a-cyclic-group/m-p/1457614#M435485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mohammed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works perfectly.&lt;/P&gt;&lt;P&gt;The sort expression can be simplified to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Year * 100 + Month&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2018 10:26:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-sort-a-cyclic-group/m-p/1457614#M435485</guid>
      <dc:creator>rudywelvaert</dc:creator>
      <dc:date>2018-01-03T10:26:39Z</dc:date>
    </item>
  </channel>
</rss>

