<?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: Question on Date Formats in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Question-on-Date-Formats/m-p/450716#M168226</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to both of you for that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used something similar to Sokkorns solution in my master calendar script and I ran into a couple of problems with the sorting - I couldn't sort them in the order I wanted - my formula was: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;amp;' '&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;right&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),4) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Dates_MonthYear &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Yet Gysbert your solution seems to sort the dates old to new without any problem at all. Are these two formulas stored differently? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Jun 2013 10:01:38 GMT</pubDate>
    <dc:creator>stuwannop</dc:creator>
    <dc:date>2013-06-07T10:01:38Z</dc:date>
    <item>
      <title>Question on Date Formats</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-Date-Formats/m-p/450713#M168223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a chart using a date field as a dimension. I want to group it by Month/Year and therefore want the format to be 'MMM-YY'. This I can do using the Date() function in the script. Problem is when I make a chart the dates don't group automatically into MMM - YY they just repeat themselves. How can I get them grouped? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bear in mind also that this particular date I'm using isn't the only date in the table. This means that I can't really write a calendar script as I'm already using one. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Stu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 09:50:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-on-Date-Formats/m-p/450713#M168223</guid>
      <dc:creator>stuwannop</dc:creator>
      <dc:date>2013-06-07T09:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Date Formats</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-Date-Formats/m-p/450714#M168224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Formatting a date will only change the display format the date. The underlying value is still the date. You'll want to create a new field. Something like &lt;EM&gt;date(monthstart(MyDate),'MMM-YY') as MonthYear&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 09:52:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-on-Date-Formats/m-p/450714#M168224</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-06-07T09:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Date Formats</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-Date-Formats/m-p/450715#M168225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In load script you can try with:&lt;/P&gt;&lt;P&gt;1. Text(Date(Field,'MMM-YY')) AS [MonthYear]&lt;/P&gt;&lt;P&gt;2. Or Month(Field) &amp;amp;'-'&amp;amp;Year(Field) AS [MonthYear]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sokkorn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 09:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-on-Date-Formats/m-p/450715#M168225</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2013-06-07T09:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Date Formats</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-Date-Formats/m-p/450716#M168226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to both of you for that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used something similar to Sokkorns solution in my master calendar script and I ran into a couple of problems with the sorting - I couldn't sort them in the order I wanted - my formula was: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;amp;' '&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;right&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),4) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Dates_MonthYear &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Yet Gysbert your solution seems to sort the dates old to new without any problem at all. Are these two formulas stored differently? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 10:01:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-on-Date-Formats/m-p/450716#M168226</guid>
      <dc:creator>stuwannop</dc:creator>
      <dc:date>2013-06-07T10:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Date Formats</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-Date-Formats/m-p/450717#M168227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gysbert's solution is by far the best one. The two formulae are indeed stored differently. By using the Date(MonthStart()) combination you will keep it in a dual format (both date number and date format) so they will be sorted automagically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avoid all string operations when creating time/date fields - if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 12:24:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-on-Date-Formats/m-p/450717#M168227</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-06-07T12:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Date Formats</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-Date-Formats/m-p/450718#M168228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Henric I understand - my "master calendar" script contains all sorts of strings in it. I largely get away with it by sorting by load order (I tend to use dates from sales tables to generate the dates) but this ensures I don't need to worry about that anymore. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks. &lt;/P&gt;&lt;P&gt;Stu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 12:35:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-on-Date-Formats/m-p/450718#M168228</guid>
      <dc:creator>stuwannop</dc:creator>
      <dc:date>2013-06-07T12:35:08Z</dc:date>
    </item>
  </channel>
</rss>

