<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting/m-p/303615#M1202334</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your quick reply.&lt;BR /&gt;But that didn't help. I am loading my data from an Access database.&lt;/P&gt;&lt;P&gt;My qvw file can be downloded from here:&lt;BR /&gt;http://www.joad.se/Test.qvw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Feb 2011 19:31:42 GMT</pubDate>
    <dc:creator>qw_johan</dc:creator>
    <dc:date>2011-02-03T19:31:42Z</dc:date>
    <item>
      <title>Sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting/m-p/303613#M1202332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I need help sorting moths. I have read other posts but havn't been able to find an answer that works.&lt;/P&gt;&lt;P&gt;Years and dates sare sorting fine...but not months. Why?&lt;BR /&gt;I try to get it to sort in the properties but nothing seems to get the months (manad) sorted right. All data are in individual listboxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;ODBC CONNECT TO [MS Access Database;DBQ=J:\data.mdb];&lt;BR /&gt;&lt;BR /&gt;Bilbokning:&lt;BR /&gt;LOAD ar,&lt;BR /&gt; dag,&lt;BR /&gt; manad,&lt;BR /&gt; nr;&lt;BR /&gt;SQL SELECT ar,&lt;BR /&gt; dag,&lt;BR /&gt; manad,&lt;BR /&gt; nr&lt;BR /&gt;FROM bokuppgifter;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Any help appreciated...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 18:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting/m-p/303613#M1202332</guid>
      <dc:creator>qw_johan</dc:creator>
      <dc:date>2011-02-03T18:54:57Z</dc:date>
    </item>
    <item>
      <title>Sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting/m-p/303614#M1202333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;First, make sure the field is loading properly and that the results are as expected (numbers with or without leading blanks or zeroes, text trimmed both left and right...) I'd suggest you to check that doing the following if the "manad" field is text when loading&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Trim(manad) as manad,&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;And the following if it's a number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Num(manad) as manad&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 19:13:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting/m-p/303614#M1202333</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-02-03T19:13:28Z</dc:date>
    </item>
    <item>
      <title>Sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting/m-p/303615#M1202334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your quick reply.&lt;BR /&gt;But that didn't help. I am loading my data from an Access database.&lt;/P&gt;&lt;P&gt;My qvw file can be downloded from here:&lt;BR /&gt;http://www.joad.se/Test.qvw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 19:31:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting/m-p/303615#M1202334</guid>
      <dc:creator>qw_johan</dc:creator>
      <dc:date>2011-02-03T19:31:42Z</dc:date>
    </item>
    <item>
      <title>Sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting/m-p/303616#M1202335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This always alphabetical, because this field as text and not numbers.&lt;BR /&gt;What is the format of the manad field in the database?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 20:21:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting/m-p/303616#M1202335</guid>
      <dc:creator />
      <dc:date>2011-02-03T20:21:35Z</dc:date>
    </item>
    <item>
      <title>Sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting/m-p/303617#M1202336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Be careful, month variable is a string call trim(manad)&lt;/P&gt;&lt;P&gt;In the script change&lt;/P&gt;&lt;P&gt;trim(manad) as manad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 20:59:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting/m-p/303617#M1202336</guid>
      <dc:creator />
      <dc:date>2011-02-03T20:59:43Z</dc:date>
    </item>
    <item>
      <title>Sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting/m-p/303618#M1202337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"manad" in the database is a string variable.&lt;BR /&gt;In the database it looks like:&lt;/P&gt;&lt;P&gt;Januari,&lt;BR /&gt;Oktober,&lt;BR /&gt;April,&lt;BR /&gt;November,&lt;BR /&gt;etc....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since it's sorting alphabetical...how do i make it sort it sort in a correct way like: jan, feb, march, april, may....&lt;BR /&gt;My qvw file can be downloded from here:&lt;/P&gt;&lt;P&gt;http://www.joad.se/Test.qvw&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 22:34:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting/m-p/303618#M1202337</guid>
      <dc:creator>qw_johan</dc:creator>
      <dc:date>2011-02-03T22:34:17Z</dc:date>
    </item>
    <item>
      <title>Sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting/m-p/303619#M1202338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;MapMonth:&lt;BR /&gt;Mapping&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; Month, Order&lt;BR /&gt; Januari, 1&lt;BR /&gt; Februari, 2&lt;BR /&gt; Mars, 3&lt;BR /&gt; April, 4&lt;BR /&gt; Maj, 5&lt;BR /&gt; Juni, 6&lt;BR /&gt; Juli, 7&lt;BR /&gt; Augusti, 8&lt;BR /&gt; September, 9&lt;BR /&gt; Oktober, 10&lt;BR /&gt; November, 11&lt;BR /&gt; December, 12&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;Bilbokning:&lt;BR /&gt;LOAD ar,&lt;BR /&gt; dag,&lt;BR /&gt; Month(MakeDate(ar,ApplyMap('MapMonth',manad),dag)) as manad,&lt;BR /&gt; nr;&lt;BR /&gt;SQL SELECT ar,&lt;BR /&gt; dag,&lt;BR /&gt; manad,&lt;BR /&gt; nr&lt;BR /&gt;FROM bokuppgifter;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 22:50:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting/m-p/303619#M1202338</guid>
      <dc:creator />
      <dc:date>2011-02-03T22:50:11Z</dc:date>
    </item>
    <item>
      <title>Sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting/m-p/303620#M1202339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, thank you, thank you so much Fernando!&lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;BR /&gt;This is exactly what I was looking to do.&lt;/P&gt;&lt;P&gt;Just one more question...I want to understand the script.&lt;BR /&gt;What is going on here...&lt;BR /&gt;Month(MakeDate(ar,ApplyMap('MapMonth',manad),dag)) as manad,&lt;/P&gt;&lt;P&gt;Thanks again Fernando.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 22:58:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting/m-p/303620#M1202339</guid>
      <dc:creator>qw_johan</dc:creator>
      <dc:date>2011-02-03T22:58:28Z</dc:date>
    </item>
    <item>
      <title>Sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting/m-p/303621#M1202340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, is very simple.&lt;/P&gt;&lt;P&gt;The Function ApplyMap, replaces the information manad field by the number of month.&lt;/P&gt;&lt;P&gt;The Function MakeDate, creates a valid date, parameters (Year, Month, Day).&lt;/P&gt;&lt;P&gt;and finally, the Function Month, creates the months from date created.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 23:12:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting/m-p/303621#M1202340</guid>
      <dc:creator />
      <dc:date>2011-02-03T23:12:56Z</dc:date>
    </item>
  </channel>
</rss>

