<?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 Sorting by Month with timestamp data. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-by-Month-with-timestamp-data/m-p/407180#M151468</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new here, and also new with Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a issue with sorting by months. I have a column called Closed which containt&amp;nbsp; Timestamp data.&lt;/P&gt;&lt;P&gt;I did use a format pattern for timestamp: MMMMMMMMMM-YYYY, as you can see below in the screenshot.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="39922" class="jive-image" height="221" alt="Capture.JPG" src="https://community.qlik.com/legacyfs/online/39922_Capture.JPG" style="height: 221px; width: 83.14851485148515px;" width="83" /&gt;&lt;/P&gt;&lt;P&gt;Now I want to sort it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;april-2013&lt;/P&gt;&lt;P&gt;maart-2013&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I accomplish this? Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 28 Apr 2013 10:46:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-28T10:46:09Z</dc:date>
    <item>
      <title>Sorting by Month with timestamp data.</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-by-Month-with-timestamp-data/m-p/407180#M151468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new here, and also new with Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a issue with sorting by months. I have a column called Closed which containt&amp;nbsp; Timestamp data.&lt;/P&gt;&lt;P&gt;I did use a format pattern for timestamp: MMMMMMMMMM-YYYY, as you can see below in the screenshot.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="39922" class="jive-image" height="221" alt="Capture.JPG" src="https://community.qlik.com/legacyfs/online/39922_Capture.JPG" style="height: 221px; width: 83.14851485148515px;" width="83" /&gt;&lt;/P&gt;&lt;P&gt;Now I want to sort it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;april-2013&lt;/P&gt;&lt;P&gt;maart-2013&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I accomplish this? Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Apr 2013 10:46:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-by-Month-with-timestamp-data/m-p/407180#M151468</guid>
      <dc:creator />
      <dc:date>2013-04-28T10:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting by Month with timestamp data.</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-by-Month-with-timestamp-data/m-p/407181#M151469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your listbox shows duplicates because the values are really still timestamps, just formatted as month-year. What I think you should do is create a new field in the script: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(monthstart(&lt;EM&gt;Closed&lt;/EM&gt;),'MMMM-YYYY') as MonthYear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This new field will be a date field with the start of the month as numeric value and formatted as monthname-year. You can sort that numerically in descending order to get the sorting you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Apr 2013 19:19:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-by-Month-with-timestamp-data/m-p/407181#M151469</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-04-28T19:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting by Month with timestamp data.</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-by-Month-with-timestamp-data/m-p/407182#M151470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorting seems to be ok. I think your problem is that you formatted the textual representation of your values like 'MMMM-YYYY', but you kept the underlying numeric timestamp values, thus keeping multiple values for your months in e.g. a list box (because of the distinct numeric values).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create an additional list box expression&lt;/P&gt;&lt;P&gt;=num(Closed) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to see what I mean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Monthstart(Closed),'MMMM-YYYY') as MonthClosed,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when creating your month field from timestamp field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also have a look at&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/docs/DOC-3102"&gt;http://community.qlik.com/docs/DOC-3102&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Apr 2013 23:10:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-by-Month-with-timestamp-data/m-p/407182#M151470</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-04-28T23:10:24Z</dc:date>
    </item>
  </channel>
</rss>

