<?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: Sort date in Month Year format in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-date-in-Month-Year-format/m-p/1680428#M1154927</link>
    <description>&lt;P&gt;This works !!. Thank you so much.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Feb 2020 15:05:34 GMT</pubDate>
    <dc:creator>QlikPankaj</dc:creator>
    <dc:date>2020-02-28T15:05:34Z</dc:date>
    <item>
      <title>Sort date in Month Year format</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-date-in-Month-Year-format/m-p/430151#M1154914</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;I have a date field which is in month year format ( Apr-2010). I am not able to sort this field in a bar chart from current to oldest date.&amp;nbsp; I am using a cycle time dimension to show data by year, quarter, &amp;amp; month-year. I have a year and a month field that I can use as well. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 23:51:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-date-in-Month-Year-format/m-p/430151#M1154914</guid>
      <dc:creator>regowins</dc:creator>
      <dc:date>2013-03-11T23:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sort date in Month Year format</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-date-in-Month-Year-format/m-p/430152#M1154915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;You can sort this by using Dual Function in backend.&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Change the date field in num format and name it as Example "DateNum".Suppose ur dimension field having values as Mar 2012, Apr 2012 is "[Month Year]".&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;thn u have to write Dual([Month Year],DateNum). This will sort ur [Month Year] field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 00:06:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-date-in-Month-Year-format/m-p/430152#M1154915</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-03-12T00:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sort date in Month Year format</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-date-in-Month-Year-format/m-p/430153#M1154916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, not sure I fully understand. In the script I am creating Month-Year but doing Month &amp;amp;'-'&amp;amp; Year as Month_Year. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 00:19:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-date-in-Month-Year-format/m-p/430153#M1154916</guid>
      <dc:creator>regowins</dc:creator>
      <dc:date>2013-03-12T00:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sort date in Month Year format</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-date-in-Month-Year-format/m-p/430154#M1154917</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;Try like this&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;LOAD *,Dual(Month(datefield) &amp;amp; '-'&amp;amp;Year(datefield),num(datefield)) as monthyear;&lt;/P&gt;&lt;P&gt;LOAD *, Date(Date#(date,'MM/DD/YYYY'),'MM/DD/YYYY') as datefield;&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;date&lt;/P&gt;&lt;P&gt;03/12/2012&lt;/P&gt;&lt;P&gt;01/12/2012&lt;/P&gt;&lt;P&gt;05/03/2012&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope its helpful to understand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 00:45:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-date-in-Month-Year-format/m-p/430154#M1154917</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-03-12T00:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sort date in Month Year format</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-date-in-Month-Year-format/m-p/430155#M1154920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create your Month-Year field differently to make it a proper date, then it will sort correctly. If you are extracting from a date field, do it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(MonthStart(datefield), 'MMM-YYYY') as [Month-Year]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you just have Month and Year fields available, do it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MakeDate(Year,Month) as [Month-Year]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 03:57:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-date-in-Month-Year-format/m-p/430155#M1154920</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-03-12T03:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sort date in Month Year format</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-date-in-Month-Year-format/m-p/430156#M1154922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt;"&gt;Thank you both. The suggestions are very helpful and I will try them out to see which works best. However, I realized that I could use the date# to interpret my Month-Year field as a date and that seems to work.&lt;BR /&gt;Ideally, I think it is better to have it in the script so I will look at the suggests you provided.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 13:36:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-date-in-Month-Year-format/m-p/430156#M1154922</guid>
      <dc:creator>regowins</dc:creator>
      <dc:date>2013-03-12T13:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sort date in Month Year format</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-date-in-Month-Year-format/m-p/430157#M1154924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robs formula worked in the dimension field: date(MonthStart(datefield), 'MMM-YYYY')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Apr 2013 17:32:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-date-in-Month-Year-format/m-p/430157#M1154924</guid>
      <dc:creator />
      <dc:date>2013-04-19T17:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sort date in Month Year format</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-date-in-Month-Year-format/m-p/1532341#M1154926</link>
      <description>&lt;P&gt;Hi! Try to do this..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;Year(DATEFIELD) as DataYear,&lt;BR /&gt;Month (DATEFIELD) as DataMonth,&lt;BR /&gt;FROM .....&lt;/P&gt;&lt;P&gt;Then go to the Chart that you want to sort -&amp;gt; open Chart Properties -&amp;gt; Expression&amp;nbsp;&lt;/P&gt;&lt;P&gt;Write&amp;nbsp;this:&lt;/P&gt;&lt;P&gt;MakeDate(DataYear, DataMonth)&lt;/P&gt;&lt;P&gt;Click on Apply.&lt;/P&gt;&lt;P&gt;It's ready!&lt;/P&gt;&lt;P&gt;&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>Fri, 18 Jan 2019 19:10:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-date-in-Month-Year-format/m-p/1532341#M1154926</guid>
      <dc:creator>bpoluha</dc:creator>
      <dc:date>2019-01-18T19:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sort date in Month Year format</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-date-in-Month-Year-format/m-p/1680428#M1154927</link>
      <description>&lt;P&gt;This works !!. Thank you so much.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 15:05:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-date-in-Month-Year-format/m-p/1680428#M1154927</guid>
      <dc:creator>QlikPankaj</dc:creator>
      <dc:date>2020-02-28T15:05:34Z</dc:date>
    </item>
  </channel>
</rss>

