<?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: sorting dimension on date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sorting-dimension-on-date/m-p/442909#M165097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change your field creation with the use of dual&lt;/P&gt;&lt;P&gt;Dual( &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;month ( orderdeliverydatefrom) &amp;amp;"-"&amp;amp; year (orderdeliverydatefrom)&lt;/SPAN&gt; ,Num(Year&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;(orderdeliverydatefrom) &lt;/SPAN&gt;&amp;amp; Num(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;month ( orderdeliverydatefrom)))&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And use Sort by exp as numeric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Dec 2012 15:27:25 GMT</pubDate>
    <dc:creator>CELAMBARASAN</dc:creator>
    <dc:date>2012-12-17T15:27:25Z</dc:date>
    <item>
      <title>sorting dimension on date</title>
      <link>https://community.qlik.com/t5/QlikView/sorting-dimension-on-date/m-p/442907#M165095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a calculated dimension like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;month ( orderdeliverydatefrom) &amp;amp;"-"&amp;amp; year (orderdeliverydatefrom).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it works but the sorting is wrong:&lt;/P&gt;&lt;P&gt;mar-2013&lt;/P&gt;&lt;P&gt;jan-2013&lt;/P&gt;&lt;P&gt;jul-2012&lt;/P&gt;&lt;P&gt;feb-2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried working with sorting by an expression on the calculated dimension.&lt;/P&gt;&lt;P&gt;and there i sorted ascending with the field "orderdeliverydatefrom" in the expression field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can someone help me with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2012 15:12:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sorting-dimension-on-date/m-p/442907#M165095</guid>
      <dc:creator>chriscools</dc:creator>
      <dc:date>2012-12-17T15:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: sorting dimension on date</title>
      <link>https://community.qlik.com/t5/QlikView/sorting-dimension-on-date/m-p/442908#M165096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best way to get this done is to create an actual "SortDate" field in the script, then use it in the Sort tab of the chart properties. For QlikView, "jan-2013" is a text string, and it will sort by ASCII codes, not as dates. If you use a date field that QlikView understands as numeric (using function Date() for example) the the sorting will make sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2012 15:25:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sorting-dimension-on-date/m-p/442908#M165096</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-12-17T15:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: sorting dimension on date</title>
      <link>https://community.qlik.com/t5/QlikView/sorting-dimension-on-date/m-p/442909#M165097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change your field creation with the use of dual&lt;/P&gt;&lt;P&gt;Dual( &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;month ( orderdeliverydatefrom) &amp;amp;"-"&amp;amp; year (orderdeliverydatefrom)&lt;/SPAN&gt; ,Num(Year&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;(orderdeliverydatefrom) &lt;/SPAN&gt;&amp;amp; Num(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;month ( orderdeliverydatefrom)))&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And use Sort by exp as numeric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2012 15:27:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sorting-dimension-on-date/m-p/442909#M165097</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-12-17T15:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: sorting dimension on date</title>
      <link>https://community.qlik.com/t5/QlikView/sorting-dimension-on-date/m-p/442910#M165098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or just use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max(Year(DatePurchase) &amp;amp; Num(Month(DatePurchase)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As sort-by expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2012 15:34:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sorting-dimension-on-date/m-p/442910#M165098</guid>
      <dc:creator />
      <dc:date>2012-12-17T15:34:50Z</dc:date>
    </item>
  </channel>
</rss>

