<?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 Pivot based on period in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sorting-Pivot-based-on-period/m-p/1552507#M744151</link>
    <description>&lt;P&gt;In general you can sort on a mid-point (split) using a sort expression like this:&lt;/P&gt;&lt;P&gt;if(Period&amp;lt;split, Period + 100, Period)&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
    <pubDate>Tue, 05 Mar 2019 16:18:06 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2019-03-05T16:18:06Z</dc:date>
    <item>
      <title>sorting Pivot based on period</title>
      <link>https://community.qlik.com/t5/QlikView/sorting-Pivot-based-on-period/m-p/1551785#M744147</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a problem where i need to sort a pivot table based on the dimension (pivoted) but based on a time selection.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i.e&lt;/P&gt;&lt;P&gt;The user has the following time selectiomns that they can choose from:&lt;/P&gt;&lt;P&gt;Selected Period&lt;/P&gt;&lt;P&gt;YTD&lt;/P&gt;&lt;P&gt;YTG&lt;/P&gt;&lt;P&gt;Fiscal Year&lt;/P&gt;&lt;P&gt;QTR&lt;/P&gt;&lt;P&gt;Last 13 Periods&lt;/P&gt;&lt;P&gt;Next 13 Periods&lt;/P&gt;&lt;P&gt;the Period field is pivoted along the top and the expressions are pivoted down the left side.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The sorting of the Periods work for all time selections apart from the last 2 in the list above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;If period 9 is selected and the user&amp;nbsp; selected YTG (Year to Go) then the sorting of the Periods are :&lt;/P&gt;&lt;P&gt;09&lt;/P&gt;&lt;P&gt;10&lt;/P&gt;&lt;P&gt;11&lt;/P&gt;&lt;P&gt;12&lt;/P&gt;&lt;P&gt;13&lt;/P&gt;&lt;P&gt;which is correct&lt;/P&gt;&lt;P&gt;but if the user selected Period 9 and 'Next 13 Periods', i want the sorting to be:&lt;/P&gt;&lt;P&gt;09&lt;/P&gt;&lt;P&gt;10&lt;/P&gt;&lt;P&gt;11&lt;/P&gt;&lt;P&gt;12&lt;/P&gt;&lt;P&gt;13&lt;/P&gt;&lt;P&gt;01&lt;/P&gt;&lt;P&gt;02&lt;/P&gt;&lt;P&gt;03&lt;/P&gt;&lt;P&gt;04&lt;/P&gt;&lt;P&gt;05&lt;/P&gt;&lt;P&gt;06&lt;/P&gt;&lt;P&gt;07&lt;/P&gt;&lt;P&gt;08&lt;/P&gt;&lt;P&gt;obviously from period 01 onwards would be the next year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;And if they selected Period 9 and Prev 13 Periods, it should be sorted&lt;/P&gt;&lt;P&gt;09&lt;/P&gt;&lt;P&gt;08&lt;/P&gt;&lt;P&gt;07&lt;/P&gt;&lt;P&gt;06&lt;/P&gt;&lt;P&gt;05&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;Can anyone help please?&lt;/P&gt;&lt;P&gt;I have attached a sample.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sorting-Pivot-based-on-period/m-p/1551785#M744147</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: sorting Pivot based on period</title>
      <link>https://community.qlik.com/t5/QlikView/sorting-Pivot-based-on-period/m-p/1552222#M744150</link>
      <description>&lt;P&gt;Can anyone help with this please? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/18624"&gt;@Gysbert_Wassenaar&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22678"&gt;@jagan&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22245"&gt;@swuehl&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 10:19:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sorting-Pivot-based-on-period/m-p/1552222#M744150</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2019-03-05T10:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: sorting Pivot based on period</title>
      <link>https://community.qlik.com/t5/QlikView/sorting-Pivot-based-on-period/m-p/1552507#M744151</link>
      <description>&lt;P&gt;In general you can sort on a mid-point (split) using a sort expression like this:&lt;/P&gt;&lt;P&gt;if(Period&amp;lt;split, Period + 100, Period)&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 16:18:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sorting-Pivot-based-on-period/m-p/1552507#M744151</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-03-05T16:18:06Z</dc:date>
    </item>
  </channel>
</rss>

