<?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: Putting months in chronological order using script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Putting-months-in-chronological-order-using-script/m-p/569867#M685543</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sara, Please use convert all the dates to Month in Qlikview by using Month function, This function stores dual value, so then you can use SORT option in Qlikview with Number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jan 2014 14:04:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-27T14:04:07Z</dc:date>
    <item>
      <title>Putting months in chronological order using script</title>
      <link>https://community.qlik.com/t5/QlikView/Putting-months-in-chronological-order-using-script/m-p/569862#M685533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hi, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I am trying to order my months table in chronological order instead of alphabetical.&amp;nbsp; The script I have is the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;VMO_NEW_OPPORTUNITY:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG style="color: #0000ff;"&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;select &lt;BR /&gt;type1.CODEDESC Type,&lt;BR /&gt;OPT9.CODEDESC as Division,&lt;BR /&gt;VMO_OPPORTUNITY.IDUSER TM,&lt;BR /&gt;count(VMO_OPPORTUNITY.IDUSER) Opportunity_Count,&lt;BR /&gt;to_char(VMO_OPPORTUNITY.created,'MON' ) as Month_created,&lt;BR /&gt;to_char(VMO_OPPORTUNITY.created,'YYYY' ) as YEAR_created&lt;BR /&gt;from ifsapp.vmo_opportunity &lt;BR /&gt;left join IFSAPP.VMO_BASE_CODEDESC opt9 on VMO_OPPORTUNITY.OKM_DIVISION=opt9.IDCOD &lt;BR /&gt;left join IFSAPP.VMO_BASE_CODEDESC type1 on VMO_OPPORTUNITY.KindofOpp =type1.IDCOD &lt;BR /&gt;where idcodprs ='prs.001'&lt;BR /&gt;and (OPT9.idlng = 'en' or OPT9.idlng is null)&lt;BR /&gt;and (type1.idlng = 'en' or type1.idlng is null)&lt;BR /&gt;group by&lt;BR /&gt;type1.CODEDESC,&lt;BR /&gt;to_char(VMO_OPPORTUNITY.created,'MON' ) ,&lt;BR /&gt;to_char(VMO_OPPORTUNITY.created,'YYYY' ),&lt;BR /&gt;OPT9.CODEDESC ,&lt;BR /&gt;VMO_OPPORTUNITY.IDUSER &lt;BR /&gt;; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I know I need to load the months as JAN = 1 etc, but can't remember the SQL for it.&amp;nbsp; Can someone jog my memory please?&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 09:14:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Putting-months-in-chronological-order-using-script/m-p/569862#M685533</guid>
      <dc:creator />
      <dc:date>2014-01-27T09:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Putting months in chronological order using script</title>
      <link>https://community.qlik.com/t5/QlikView/Putting-months-in-chronological-order-using-script/m-p/569863#M685535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Sara&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about changing this line to :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; to_char(VMO_OPPORTUNITY.created,'&lt;SPAN style="color: #993300;"&gt;&lt;STRONG&gt;MM&lt;/STRONG&gt;&lt;/SPAN&gt;' ) ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Best Regards,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Bill&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 09:17:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Putting-months-in-chronological-order-using-script/m-p/569863#M685535</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-27T09:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Putting months in chronological order using script</title>
      <link>https://community.qlik.com/t5/QlikView/Putting-months-in-chronological-order-using-script/m-p/569864#M685537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Sara&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this one as well :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11px;"&gt;to_char(VMO_OPPORTUNITY.created,'&lt;STRONG style="font-size: 11px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #993300;"&gt;MM&lt;/STRONG&gt;' ) as Month_created,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt;"&gt;Best Regards,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Bill&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 09:18:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Putting-months-in-chronological-order-using-script/m-p/569864#M685537</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-27T09:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Putting months in chronological order using script</title>
      <link>https://community.qlik.com/t5/QlikView/Putting-months-in-chronological-order-using-script/m-p/569865#M685539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Bill, tried but it brought through the Month JAN FEB etc aswell as numbers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I want to be able to do is have the month in JAN FEB etc format but be able to sort it in calendar order.&amp;nbsp; At the moment it keeps going alphabetically.&amp;nbsp; Very frustrating. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 09:25:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Putting-months-in-chronological-order-using-script/m-p/569865#M685539</guid>
      <dc:creator />
      <dc:date>2014-01-27T09:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Putting months in chronological order using script</title>
      <link>https://community.qlik.com/t5/QlikView/Putting-months-in-chronological-order-using-script/m-p/569866#M685541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about using Qlikview to interpret the date in stead of SQL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11.111111640930176px;"&gt;LOAD ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11.111111640930176px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11px;"&gt;created&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11.111111640930176px;"&gt;) As &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11.111111640930176px;"&gt;Month_created&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11.111111640930176px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11.111111640930176px;"&gt;SQL SELECT &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11.111111640930176px;"&gt;VMO_OPPORTUNITY.created&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11.111111640930176px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11.111111640930176px;"&gt;....;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way Qlikview will show month names, but will internally still use the month number for sorting purposes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 09:30:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Putting-months-in-chronological-order-using-script/m-p/569866#M685541</guid>
      <dc:creator />
      <dc:date>2014-01-27T09:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Putting months in chronological order using script</title>
      <link>https://community.qlik.com/t5/QlikView/Putting-months-in-chronological-order-using-script/m-p/569867#M685543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sara, Please use convert all the dates to Month in Qlikview by using Month function, This function stores dual value, so then you can use SORT option in Qlikview with Number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 14:04:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Putting-months-in-chronological-order-using-script/m-p/569867#M685543</guid>
      <dc:creator />
      <dc:date>2014-01-27T14:04:07Z</dc:date>
    </item>
  </channel>
</rss>

