<?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 Sort issues after converting dates into Q and Months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-issues-after-converting-dates-into-Q-and-Months/m-p/1125800#M520645</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am converting data on a script and creating new columns but when i place them into a graph i am struggling to sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script is undertaking the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Q' &amp;amp; Ceil(Month([Subs_Invoice_Invoice_Date])/3) &amp;amp; '-' &amp;amp; Year([Subs_Invoice_Invoice_Date]) as Invoice_Quarter,&lt;/P&gt;&lt;P&gt;Date([Subs_Invoice_Invoice_Date],'MMM') &amp;amp; '-' &amp;amp; &lt;SPAN style="font-size: 13.3333px;"&gt;Year([Subs_Invoice_Invoice_Date])&lt;/SPAN&gt;as Invoice_Month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cant figure out what sort to apply to have dates going from Dec-2015 through to Jul-2016.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They are all mixed up!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wasnt sure whether I could apply a sort in the script that would combat this and load by 'Load Order'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Aug 2016 21:00:02 GMT</pubDate>
    <dc:creator>martin_hamilton</dc:creator>
    <dc:date>2016-08-31T21:00:02Z</dc:date>
    <item>
      <title>Sort issues after converting dates into Q and Months</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-issues-after-converting-dates-into-Q-and-Months/m-p/1125800#M520645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am converting data on a script and creating new columns but when i place them into a graph i am struggling to sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script is undertaking the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Q' &amp;amp; Ceil(Month([Subs_Invoice_Invoice_Date])/3) &amp;amp; '-' &amp;amp; Year([Subs_Invoice_Invoice_Date]) as Invoice_Quarter,&lt;/P&gt;&lt;P&gt;Date([Subs_Invoice_Invoice_Date],'MMM') &amp;amp; '-' &amp;amp; &lt;SPAN style="font-size: 13.3333px;"&gt;Year([Subs_Invoice_Invoice_Date])&lt;/SPAN&gt;as Invoice_Month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cant figure out what sort to apply to have dates going from Dec-2015 through to Jul-2016.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They are all mixed up!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wasnt sure whether I could apply a sort in the script that would combat this and load by 'Load Order'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 21:00:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-issues-after-converting-dates-into-Q-and-Months/m-p/1125800#M520645</guid>
      <dc:creator>martin_hamilton</dc:creator>
      <dc:date>2016-08-31T21:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sort issues after converting dates into Q and Months</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-issues-after-converting-dates-into-Q-and-Months/m-p/1125801#M520646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this for MonthYear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MonthName(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Subs_Invoice_Invoice_Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;) &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;as Invoice_Month&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Date(MonthStart(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Subs_Invoice_Invoice_Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)) &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;as Invoice_Month&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For QuaterYear, try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;Dual(&lt;/SPAN&gt;'Q' &amp;amp; Ceil(Month([Subs_Invoice_Invoice_Date])/3) &amp;amp; '-' &amp;amp; Year([Subs_Invoice_Invoice_Date])&lt;SPAN style="color: #ff0000;"&gt;, QuarterStart([Subs_Invoice_Invoice_Date]))&lt;/SPAN&gt; as Invoice_Quarter,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you should be able to use a regular numeric sort for both the fields&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 21:10:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-issues-after-converting-dates-into-Q-and-Months/m-p/1125801#M520646</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-31T21:10:50Z</dc:date>
    </item>
  </channel>
</rss>

