<?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 list box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-list-box/m-p/560321#M1131404</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;Use the sort expression you are using, in the script rather.&lt;/P&gt;&lt;P&gt;Let's say the column is SortOrder.&lt;/P&gt;&lt;P&gt;Then in the sort option of list box, use the expression only({1}SortOrder). This should work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Nov 2013 12:40:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-25T12:40:37Z</dc:date>
    <item>
      <title>Sorting list box</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-list-box/m-p/560318#M1131401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have sorted a list box by three criteria,&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; firstly by the state (As auto ascending)&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; secondly by an expression&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; thirdly by text&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My custom expression is&amp;nbsp;&amp;nbsp;&amp;nbsp; if&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;round&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;quantity&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&amp;gt;0,1,2)&amp;nbsp;&amp;nbsp;&amp;nbsp; ie so it sums up the activity and if is greater than one sorts first&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;This all works fine, however when i make other selections in other list boxes, and my options in the list box described above reduce, the grey options ie the ones unavailable for selection are not filtered in the correct order as mentioned above.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;So when no selections are made the list box is sorted correcty as per above, when selections are made, the ones available are sent to the top as they should, but the greyed out unavailable selections are sorted as per the default setting, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;is it possible for these options to be sorted as well as per my criteria above?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Jon&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 14:43:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-list-box/m-p/560318#M1131401</guid>
      <dc:creator />
      <dc:date>2013-11-21T14:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting list box</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-list-box/m-p/560319#M1131402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try changing the custom expression to: if&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({1}&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;round&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;quantity&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&amp;gt;0,1,2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should ignore the other selections that you're making.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 19:55:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-list-box/m-p/560319#M1131402</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2013-11-21T19:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting list box</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-list-box/m-p/560320#M1131403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for your answer, this works fine for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I also have a different custom sort as per below which sorts the customers based on a standard rule for prefixes which we use.&lt;/P&gt;&lt;P&gt;I am currently experiencing the same issue as above, how can incorporate the modification into the formula below which isnt a sum formula&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;right&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Cust ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,3) &amp;lt;&amp;gt; '_L5',1,2) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 12:24:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-list-box/m-p/560320#M1131403</guid>
      <dc:creator />
      <dc:date>2013-11-25T12:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting list box</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-list-box/m-p/560321#M1131404</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;Use the sort expression you are using, in the script rather.&lt;/P&gt;&lt;P&gt;Let's say the column is SortOrder.&lt;/P&gt;&lt;P&gt;Then in the sort option of list box, use the expression only({1}SortOrder). This should work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 12:40:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-list-box/m-p/560321#M1131404</guid>
      <dc:creator />
      <dc:date>2013-11-25T12:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting list box</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-list-box/m-p/560322#M1131405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;right&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;(&lt;/SPAN&gt;only({1}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Cust ID]&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,3) &amp;lt;&amp;gt; '_L5',1,2) &lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 13:34:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-list-box/m-p/560322#M1131405</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2013-11-25T13:34:09Z</dc:date>
    </item>
  </channel>
</rss>

