<?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 months in a 12 month period in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sorting-months-in-a-12-month-period/m-p/1865077#M71403</link>
    <description>&lt;P&gt;Perhaps consider using a dimension such as MonthName(Date) which results in e.g. "Nov 2021" rather than "Nov". Standard ascending sort will then get you the correct order and Nov 2021 will be separate from Nov 2020.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Nov 2021 17:59:28 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2021-11-30T17:59:28Z</dc:date>
    <item>
      <title>Sorting months in a 12 month period</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-months-in-a-12-month-period/m-p/1865070#M71401</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I have created an app that has a weekly and monthly breakdown which role over a current and previous 12 months period. My weekly data populates every time I enter a new week, whereas the monthly data populates every time I enter a new month. As&amp;nbsp; a result of this, my weeks will contain dates( based off of the current month we are in Nov-2021) , up until the 28th of November. However, my month is only up until the October 2021 since November isn't complete. The issue I am having is I can't sort my month properly by using max(MonthStartDate) because it puts November first which isn't correct in this case since the two Novembers in the graph below refer to 2020 and 2019. How can I sort the data?&lt;/P&gt;
&lt;P&gt;I have tried sorting by using&amp;nbsp; Monthstart(max(FR_MonthStartDate),-1) but that doesn't work. Below is how I have formulated my RYTD period.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Count({$&amp;lt;FR_MonthStartDate={"&amp;gt;=$(=Monthstart(max(FR_MonthStartDate),-12))&amp;lt;=$(=Monthstart(max(FR_MonthStartDate),-1))"}&amp;gt;}Fault_Ref)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alexwb_0-1638293971122.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/67656i4B3C6BCB70325A3F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alexwb_0-1638293971122.png" alt="alexwb_0-1638293971122.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks for the help, much appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 17:52:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-months-in-a-12-month-period/m-p/1865070#M71401</guid>
      <dc:creator>alex-wb</dc:creator>
      <dc:date>2021-11-30T17:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting months in a 12 month period</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-months-in-a-12-month-period/m-p/1865077#M71403</link>
      <description>&lt;P&gt;Perhaps consider using a dimension such as MonthName(Date) which results in e.g. "Nov 2021" rather than "Nov". Standard ascending sort will then get you the correct order and Nov 2021 will be separate from Nov 2020.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 17:59:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-months-in-a-12-month-period/m-p/1865077#M71403</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-11-30T17:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting months in a 12 month period</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-months-in-a-12-month-period/m-p/1865363#M71418</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6142"&gt;@Or&lt;/a&gt;&amp;nbsp;, unfortunately I need to display it the way as seen above, so the solution isn't quite what I am looking for, but thanks for the reply.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 10:08:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-months-in-a-12-month-period/m-p/1865363#M71418</guid>
      <dc:creator>alex-wb</dc:creator>
      <dc:date>2021-12-01T10:08:24Z</dc:date>
    </item>
  </channel>
</rss>

