<?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: Sort monthname listbox in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-monthname-listbox/m-p/477388#M178332</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try sorting by this expression: only({1}[Sort order])&lt;/P&gt;&lt;P&gt;To explain, if you select some months only sort order of the selected months are used in the expression. For the other months the sort order is null so those are shown first. The {1} means that selections are disregarded so the sort order value of all months are used for the sorting expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Oct 2013 15:23:30 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-10-16T15:23:30Z</dc:date>
    <item>
      <title>Sort monthname listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-monthname-listbox/m-p/477387#M178331</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;I'm trying to sort a listbox with monthname so that the order will be Jan, Feb, Mar ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also want to keep this sorting even if the user selects a few months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A demo app with the functionality can be found here: &lt;A href="http://eu.demo.qlik.com/QvAJAXZfc/opendoc.htm?document=qvdocs%2FProcurement.qvw&amp;amp;host=Demo11&amp;amp;anonymous=true" title="http://eu.demo.qlik.com/QvAJAXZfc/opendoc.htm?document=qvdocs%2FProcurement.qvw&amp;amp;host=Demo11&amp;amp;anonymous=true"&gt;QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've used an inline table with the monthname and the sort order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13819288339106362" jivemacro_uid="_13819288339106362" modifiedtitle="true"&gt;
&lt;P&gt;Join(DIM_Time)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;MonthSorting:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE&lt;/P&gt;
&lt;P&gt;[&lt;/P&gt;
&lt;P&gt;MonthName, Sort order&lt;/P&gt;
&lt;P&gt;JAN, 1&lt;/P&gt;
&lt;P&gt;FEB, 2&lt;/P&gt;
&lt;P&gt;MAR, 3f&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I uncheck the state option under Properties -&amp;gt; Sort for the listbox and select Expression =[Sort order]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine until a month is selected. Then the list will move the selected months to the end of the listbox. How can I avoid this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 13:09:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-monthname-listbox/m-p/477387#M178331</guid>
      <dc:creator />
      <dc:date>2013-10-16T13:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sort monthname listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-monthname-listbox/m-p/477388#M178332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try sorting by this expression: only({1}[Sort order])&lt;/P&gt;&lt;P&gt;To explain, if you select some months only sort order of the selected months are used in the expression. For the other months the sort order is null so those are shown first. The {1} means that selections are disregarded so the sort order value of all months are used for the sorting expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 15:23:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-monthname-listbox/m-p/477388#M178332</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-10-16T15:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sort monthname listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-monthname-listbox/m-p/477389#M178333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked great!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, thank you for the explanation!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 07:23:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-monthname-listbox/m-p/477389#M178333</guid>
      <dc:creator />
      <dc:date>2013-10-17T07:23:19Z</dc:date>
    </item>
  </channel>
</rss>

