<?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: How to sort data by month? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-sort-data-by-month/m-p/954627#M328173</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A simple illustration of how to do it in an isolated field - this is easy to include in a full calendar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-09-15 #3.png" class="jive-image image-1" src="/legacyfs/online/98997_2015-09-15 #3.png" style="height: 96px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-09-15 #1.png" class="jive-image image-2" src="/legacyfs/online/98998_2015-09-15 #1.png" style="height: 283px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-09-15 #2.png" class="jive-image image-3" src="/legacyfs/online/99011_2015-09-15 #2.png" style="height: 248px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure that you resize the listbox with the resize handles so it gets much wider and only on row tall.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally turn off the Caption.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Sep 2015 13:57:59 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2015-09-15T13:57:59Z</dc:date>
    <item>
      <title>How to sort data by month?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-data-by-month/m-p/954622#M328168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to create obj like this: &lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;January&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;February&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;March&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;April&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;May&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;June&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;July&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;August&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;September&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;October&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;November&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;December&lt;/TH&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;To sort data in pivot table by month. I have a date filed in database (created_at) which shows information in following format: 2015-07-08 12:45:02 (timestamp without time zone) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;@K N&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/4118"&gt;Colin_Albert&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 13:29:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-data-by-month/m-p/954622#M328168</guid>
      <dc:creator />
      <dc:date>2015-09-15T13:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort data by month?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-data-by-month/m-p/954623#M328169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As long as you use the Month()-function in your load statement on a date-field you will get a dual-value which have both the textual part and the sort-order (month number) for each value. In short you will get what you ask for by using:&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month( SomeDateField ) AS Mnth,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 13:35:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-data-by-month/m-p/954623#M328169</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-09-15T13:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort data by month?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-data-by-month/m-p/954624#M328170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use: dual(monthname(YourTimestamp), num(month(YourTimestamp))) - further informations could you find here: &lt;A href="https://community.qlik.com/docs/DOC-8843"&gt;How to use - Master-Calendar and Date-Values&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 13:38:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-data-by-month/m-p/954624#M328170</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-09-15T13:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort data by month?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-data-by-month/m-p/954625#M328171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First from scripting layer extract month from the above time stamp and then sort for Month&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 13:39:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-data-by-month/m-p/954625#M328171</guid>
      <dc:creator>satishkurra</dc:creator>
      <dc:date>2015-09-15T13:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort data by month?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-data-by-month/m-p/954626#M328172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the month function against a date field and the value will be stored as a dual value with the correct numeric value and text value. Sort the month field in numeric order to get the correct sort order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your load script use&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; month(your_date_field) as Mth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may need to use date# to get the correct date format initially&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; month(date#(your_date_field, 'YYYY-MM-DD hh:mm:ss') as Mth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 13:54:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-data-by-month/m-p/954626#M328172</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2015-09-15T13:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort data by month?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-data-by-month/m-p/954627#M328173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A simple illustration of how to do it in an isolated field - this is easy to include in a full calendar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-09-15 #3.png" class="jive-image image-1" src="/legacyfs/online/98997_2015-09-15 #3.png" style="height: 96px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-09-15 #1.png" class="jive-image image-2" src="/legacyfs/online/98998_2015-09-15 #1.png" style="height: 283px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-09-15 #2.png" class="jive-image image-3" src="/legacyfs/online/99011_2015-09-15 #2.png" style="height: 248px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure that you resize the listbox with the resize handles so it gets much wider and only on row tall.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally turn off the Caption.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 13:57:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-data-by-month/m-p/954627#M328173</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-09-15T13:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort data by month?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-data-by-month/m-p/954628#M328174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sure I quite get how to connect created fields with my date field ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 14:28:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-data-by-month/m-p/954628#M328174</guid>
      <dc:creator />
      <dc:date>2015-09-15T14:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort data by month?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-data-by-month/m-p/954629#M328175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="screenshot 10.png" class="jive-image image-1" src="/legacyfs/online/99021_screenshot 10.png" style="height: 377px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I'm loading like this I have this error, maybe because it needs some other function because of postgres?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 14:29:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-data-by-month/m-p/954629#M328175</guid>
      <dc:creator />
      <dc:date>2015-09-15T14:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort data by month?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-data-by-month/m-p/954630#M328176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are applying QlikView functions in your SQL script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use syntax like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tenant_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; month(created_at) as Month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; year(created_at as Year ;&lt;/P&gt;&lt;P&gt;SQL select&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id, tenant_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from salescript_results ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 14:37:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-data-by-month/m-p/954630#M328176</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2015-09-15T14:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort data by month?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-data-by-month/m-p/954631#M328177</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;another solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1442357718535421" jivemacro_uid="_1442357718535421"&gt;
&lt;P&gt;Dual(Date(created_at,'MMMM'),Month(created_at)) as Month&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_180814_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/99066_QlikCommunity_Thread_180814_Pic1.JPG" style="height: 190px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_180814_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/99067_QlikCommunity_Thread_180814_Pic2.JPG" style="height: 129px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 22:55:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-data-by-month/m-p/954631#M328177</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-09-15T22:55:31Z</dc:date>
    </item>
  </channel>
</rss>

