<?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: List Box sort in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/List-Box-sort/m-p/537078#M1123071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sort by expression:&lt;/P&gt;&lt;P&gt;match(YourField, &lt;/P&gt;&lt;P&gt;'HE printers',&lt;/P&gt;&lt;P&gt;'5m printers',&lt;/P&gt;&lt;P&gt;'3m printers',&lt;/P&gt;&lt;P&gt;'hybrid printers',&lt;/P&gt;&lt;P&gt;'production above 80 printers',&lt;/P&gt;&lt;P&gt;'production from 50 printers')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jan 2014 15:06:22 GMT</pubDate>
    <dc:creator>Nicole-Smith</dc:creator>
    <dc:date>2014-01-20T15:06:22Z</dc:date>
    <item>
      <title>List Box sort</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-sort/m-p/537077#M1123070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list box as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3m printers&lt;/P&gt;&lt;P&gt;5m printers&lt;/P&gt;&lt;P&gt;HE printers&lt;/P&gt;&lt;P&gt;hybrid printers&lt;/P&gt;&lt;P&gt;production above 80 printers&lt;/P&gt;&lt;P&gt;production from 50 printers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the list box to be sorted as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HE printers&lt;/P&gt;&lt;P&gt;5m printers&lt;/P&gt;&lt;P&gt;3m printers&lt;/P&gt;&lt;P&gt;hybrid printers&lt;/P&gt;&lt;P&gt;production above 80 printers&lt;/P&gt;&lt;P&gt;production from 50 printers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How I can do that ? I did not find the way to do that through the sort options in the sort tabrow under the List Box properties...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;dani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 15:05:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-sort/m-p/537077#M1123070</guid>
      <dc:creator>danialier</dc:creator>
      <dc:date>2014-01-20T15:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: List Box sort</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-sort/m-p/537078#M1123071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sort by expression:&lt;/P&gt;&lt;P&gt;match(YourField, &lt;/P&gt;&lt;P&gt;'HE printers',&lt;/P&gt;&lt;P&gt;'5m printers',&lt;/P&gt;&lt;P&gt;'3m printers',&lt;/P&gt;&lt;P&gt;'hybrid printers',&lt;/P&gt;&lt;P&gt;'production above 80 printers',&lt;/P&gt;&lt;P&gt;'production from 50 printers')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 15:06:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-sort/m-p/537078#M1123071</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-20T15:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: List Box sort</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-sort/m-p/537079#M1123073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicole,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I did but it does not work…&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I missing anything ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thks,dani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 15:38:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-sort/m-p/537079#M1123073</guid>
      <dc:creator>danialier</dc:creator>
      <dc:date>2014-01-20T15:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: List Box sort</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-sort/m-p/537080#M1123075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to put whatever field has those values in the place where I have YourField:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;match(&lt;STRONG&gt;YourField&lt;/STRONG&gt;, &lt;/P&gt;&lt;P&gt;'HE printers',&lt;/P&gt;&lt;P&gt;'5m printers',&lt;/P&gt;&lt;P&gt;'3m printers',&lt;/P&gt;&lt;P&gt;'hybrid printers',&lt;/P&gt;&lt;P&gt;'production above 80 printers',&lt;/P&gt;&lt;P&gt;'production from 50 printers')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 15:41:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-sort/m-p/537080#M1123075</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-20T15:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: List Box sort</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-sort/m-p/537081#M1123077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You forgot to put the field name as the first argument in the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 15:41:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-sort/m-p/537081#M1123077</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-20T15:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: List Box sort</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-sort/m-p/537082#M1123078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HeY Dani,&lt;/P&gt;&lt;P&gt;I think you forgot the field name. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 15:42:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-sort/m-p/537082#M1123078</guid>
      <dc:creator />
      <dc:date>2014-01-20T15:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: List Box sort</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-sort/m-p/537083#M1123080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest using the dual function. Adding an order number to each value. This way sort would be much more efficient with QV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H1&gt;&lt;A name="kanchor573"&gt;&lt;/A&gt;Dual&lt;/H1&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN class="Bold"&gt;dual( &lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;s , x&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt; )&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Forced association of an arbitrary string representation &lt;SPAN class="Italic"&gt;s&lt;/SPAN&gt; with a given number representation &lt;SPAN class="Italic"&gt;x&lt;/SPAN&gt;. In QlikView, when several data items read into one field &lt;BR /&gt;have different string representations but the same valid number representation, &lt;BR /&gt;they will all share the first string representation encountered. The dual &lt;BR /&gt;function is typically used early in the script, before other data is read into &lt;BR /&gt;the field concerned, in order to create that first string representation, which &lt;BR /&gt;will be shown in list boxes etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="example"&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;load dual ( string,numrep ) as DayOfWeek inline&amp;nbsp; &lt;/P&gt;&lt;P class="Code"&gt;[ string,numrep &lt;/P&gt;&lt;P class="Code"&gt;Monday,0 &lt;/P&gt;&lt;P class="Code"&gt;Tuesday,1 &lt;/P&gt;&lt;P class="Code"&gt;Wednesday,2 &lt;/P&gt;&lt;P class="Code"&gt;Thursday,3 &lt;/P&gt;&lt;P class="Code"&gt;Friday,4 &lt;/P&gt;&lt;P class="Code"&gt;Saturday,5 &lt;/P&gt;&lt;P class="Code"&gt;Sunday,6 ]; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;load Date, weekday(Date) as DayOfWeek from afile.csv; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script example will generate a field &lt;SPAN class="Italic"&gt;DayOfWeek&lt;/SPAN&gt; &lt;BR /&gt;with the weekdays written in clear text. QlikView will for all purposes (including sort) regard the field as a numeric field. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 15:48:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-sort/m-p/537083#M1123080</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2014-01-20T15:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: List Box sort</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-sort/m-p/537084#M1123081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent now it works !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when I select a filter, the selection goes to the bottom of the list box… and I want this list box to be fixed whatever value I select from the List Box. Do you know how to do that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;P&gt;dani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 15:51:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-sort/m-p/537084#M1123081</guid>
      <dc:creator>danialier</dc:creator>
      <dc:date>2014-01-20T15:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: List Box sort</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-sort/m-p/537085#M1123083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;match(only({1}&lt;STRONG&gt;YourField&lt;/STRONG&gt;), &lt;/P&gt;&lt;P&gt;'HE printers',&lt;/P&gt;&lt;P&gt;'5m printers',&lt;/P&gt;&lt;P&gt;'3m printers',&lt;/P&gt;&lt;P&gt;'hybrid printers',&lt;/P&gt;&lt;P&gt;'production above 80 printers',&lt;/P&gt;&lt;P&gt;'production from 50 printers')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 15:53:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-sort/m-p/537085#M1123083</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-20T15:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: List Box sort</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-sort/m-p/537086#M1123084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent !!!! It works now. Many thanks Nicole !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 15:58:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-sort/m-p/537086#M1123084</guid>
      <dc:creator>danialier</dc:creator>
      <dc:date>2014-01-20T15:58:40Z</dc:date>
    </item>
  </channel>
</rss>

