<?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 by expression in list box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-by-expression-in-list-box/m-p/1007625#M342138</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quick and easy. Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Nov 2015 21:42:31 GMT</pubDate>
    <dc:creator>bhorneber</dc:creator>
    <dc:date>2015-11-16T21:42:31Z</dc:date>
    <item>
      <title>Sorting by expression in list box</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-by-expression-in-list-box/m-p/1007623#M342136</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 am struggling with the sorting behavior in list boxes and can't figure out how to make it work.&lt;/P&gt;&lt;P&gt;I have a couple of list boxes with &lt;SPAN style="font-size: 13.3333px;"&gt;multiple entries that I want to have sorted in a specific order. When selecting one or more elements, the selected elements should come first, then the not selected elements. The important part: Also the not selected elements should keep their order.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To maintain my sorting order, I added a separate 'sorting column' to my data model.&lt;/P&gt;&lt;P&gt;This is a simpli !fied example with just for entries:&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14477086883145712 jive_text_macro" jivemacro_uid="_14477086883145712"&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;LOAD * Inline [&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Letter, Sort&lt;/P&gt;
&lt;P&gt;&amp;nbsp; H, 10&lt;/P&gt;
&lt;P&gt;&amp;nbsp; P, 40&lt;/P&gt;
&lt;P&gt;&amp;nbsp; L, 30&lt;/P&gt;
&lt;P&gt;&amp;nbsp; E, 20&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expectation was that having the following settings in my list box should work correctly:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="screenshot1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/105691_screenshot1.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, although the sorting works when not selecting anything, the order gets messed up when selecting e.g. the letter 'L':&lt;/P&gt;&lt;P&gt;&lt;IMG alt="screenshot2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/105698_screenshot2.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, my expectation was to have L on top, and then H &amp;gt; E &amp;gt; P below. But somehow the sorting order only applies to the selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas how to fix that or why this behavior happens?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 21:27:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-by-expression-in-list-box/m-p/1007623#M342136</guid>
      <dc:creator>bhorneber</dc:creator>
      <dc:date>2015-11-16T21:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting by expression in list box</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-by-expression-in-list-box/m-p/1007624#M342137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this sort expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Only({1} Sort)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/105701_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 21:40:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-by-expression-in-list-box/m-p/1007624#M342137</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-16T21:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting by expression in list box</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-by-expression-in-list-box/m-p/1007625#M342138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quick and easy. Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 21:42:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-by-expression-in-list-box/m-p/1007625#M342138</guid>
      <dc:creator>bhorneber</dc:creator>
      <dc:date>2015-11-16T21:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting by expression in list box</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-by-expression-in-list-box/m-p/1007626#M342139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Sunny has pointed out, your values for "Sort" are not available when you make a selection, and the {1} will fix that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to suggest that it may be easier to&amp;nbsp; deal with this by using "Load Order", rather than an expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://qlikviewcookbook.com/2012/11/establishing-a-sort-order/" title="http://qlikviewcookbook.com/2012/11/establishing-a-sort-order/"&gt;Establishing a Sort Order | Qlikview Cookbook&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 21:45:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-by-expression-in-list-box/m-p/1007626#M342139</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-11-16T21:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting by expression in list box</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-by-expression-in-list-box/m-p/1007627#M342140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Rob.&lt;/P&gt;&lt;P&gt;I thought about using load order as well and might play around with that a little more too. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Given the layout of the data sources and the data model in general, having a separate column is my preferred solution at this point. But as always, it's great to have some alternatives available.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 21:52:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-by-expression-in-list-box/m-p/1007627#M342140</guid>
      <dc:creator>bhorneber</dc:creator>
      <dc:date>2015-11-16T21:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting by expression in list box</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-by-expression-in-list-box/m-p/1757859#M453869</link>
      <description>&lt;P&gt;Thank you! This 5 year old post has helped me solve a problem I've had for a couple of days.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 15:27:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-by-expression-in-list-box/m-p/1757859#M453869</guid>
      <dc:creator>paul8pharma</dc:creator>
      <dc:date>2020-11-02T15:27:31Z</dc:date>
    </item>
  </channel>
</rss>

