<?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 Problem with listbox sorting in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-listbox-sorting/m-p/324381#M119561</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't know about Data Reduction, i read the manual and i managed to find a way to filter my data using section access with NTNAME. It works like a charm, and now i can finally avoid using an expression on my listboxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Aug 2011 10:33:03 GMT</pubDate>
    <dc:creator>claudio1</dc:creator>
    <dc:date>2011-08-17T10:33:03Z</dc:date>
    <item>
      <title>Problem with listbox sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-listbox-sorting/m-p/324374#M119554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;I have a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;problem with&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the simple&lt;/SPAN&gt; sorting &lt;SPAN class="hps"&gt;of a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;list box&lt;/SPAN&gt;, my situation &lt;SPAN class="hps"&gt;is as follows&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN class="hps"&gt;Sort:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Sate:&lt;/SPAN&gt; Ascending&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Text&lt;/SPAN&gt;: &lt;SPAN class="hps atn"&gt;A -&lt;/SPAN&gt;&amp;gt; &lt;SPAN class="hps"&gt;Z&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN class="hps"&gt;Expression inside the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;list box&lt;/SPAN&gt;:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps atn"&gt;if (&lt;/SPAN&gt;FIELD1 &lt;SPAN class="hps"&gt;=&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;0,&lt;/SPAN&gt; FIELD&lt;SPAN class="hps"&gt;2&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Using&lt;/SPAN&gt; any kind of expression as value of the listbox &lt;SPAN class="hps atn"&gt;(&lt;/SPAN&gt;like the one just &lt;SPAN class="hps"&gt;described&lt;/SPAN&gt;) the sorting of the listbox does not work properly when i apply any kind of selection on the data, in particular it seems that it loses the Sort by State. &lt;SPAN class="hps"&gt;If i &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;enter&lt;/SPAN&gt;&lt;SPAN class="hps"&gt; the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;direct value&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;of&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;FIELD2&lt;/SPAN&gt;, so &lt;SPAN class="hps"&gt;without applying&lt;/SPAN&gt; an &lt;SPAN class="hps"&gt;expression&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;on the listbox value&lt;/SPAN&gt;, sorting &lt;SPAN class="hps"&gt;always works&lt;/SPAN&gt; &lt;SPAN class="hps atn"&gt;correctly (&lt;/SPAN&gt;so &lt;SPAN class="hps"&gt;the data is&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;sorted by&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;state and then &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;alphabetically&lt;/SPAN&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone knows why this happens?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My QV &lt;SPAN class="hps"&gt;version&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;is &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;10&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;SR3&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;Claudio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 08:41:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-listbox-sorting/m-p/324374#M119554</guid>
      <dc:creator>claudio1</dc:creator>
      <dc:date>2011-08-02T08:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with listbox sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-listbox-sorting/m-p/324375#M119555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;What i understood from your post is &lt;/P&gt;&lt;P&gt;That you have two fields based on one field you are capturing the data of another field in a listbox by writing expression like(=if(field1=0,Field2)) and the sort order is not working for you in this senario yes,&lt;/P&gt;&lt;P&gt;and if you take directly Field2 in a listbox then the sort order is working for you yes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now how can you desiding the sort order is not working in the first senario and what selections you are doing on that listbox?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards...........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 09:26:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-listbox-sorting/m-p/324375#M119555</guid>
      <dc:creator />
      <dc:date>2011-08-02T09:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with listbox sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-listbox-sorting/m-p/324376#M119556</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;Yes what you understood is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically i'm only using that expression as a filter on listbox values and then i am making a selection on the whole data using another dimension.&lt;/P&gt;&lt;P&gt;I think the problem is not the selection itself because i've tried a similar case on another report and i have the same issue : with the direct field sorting works, with an expression it doesn't (when you start to play with selections).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also tried with a dummy expression like this If(1=1, FIELD2) and i have the same issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that using an expression in a listbox value causes this problem with sorting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone is experiencing the same problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 10:07:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-listbox-sorting/m-p/324376#M119556</guid>
      <dc:creator>claudio1</dc:creator>
      <dc:date>2011-08-02T10:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with listbox sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-listbox-sorting/m-p/324377#M119557</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;yes in Qlikview sorting wont work if you use expressions in the chart dimensions or filed list boxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want proper sorting you should create a new field while loading the data based on the expression you are giving in the field expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the load script you create new filed like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(FIELD1=0,FIELD2) as NewField,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from ssdsfs;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and apply waht ever the sorting you wanted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 01:36:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-listbox-sorting/m-p/324377#M119557</guid>
      <dc:creator />
      <dc:date>2011-08-03T01:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with listbox sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-listbox-sorting/m-p/324378#M119558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; If you always want the sort order to be in a specific format - a possible way is to use ORDER BY in your load or sql select when loading your script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 02:37:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-listbox-sorting/m-p/324378#M119558</guid>
      <dc:creator />
      <dc:date>2011-08-03T02:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with listbox sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-listbox-sorting/m-p/324379#M119559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi BlackRockS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your answer seems correct, unfortunately in my report i can't use such solution because in the listbox value i have something like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(USER='$(vUserName)', FIELD) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My filter expression on data is based on the variable vUserName which is set at runtime with the value of OSUser() (a QV function returning the name of the currently logged in user). &lt;/P&gt;&lt;P&gt;So, there is no way for me to apply that filter directly inside the Load script, not having that information yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe there is a more suitable way to filter data using the currently logged in user?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 15:55:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-listbox-sorting/m-p/324379#M119559</guid>
      <dc:creator>claudio1</dc:creator>
      <dc:date>2011-08-16T15:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with listbox sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-listbox-sorting/m-p/324380#M119560</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;In that case you can think of using Data Reduction using section access based on the user logged in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you elaborate your requirement if you are still looking for some solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 01:34:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-listbox-sorting/m-p/324380#M119560</guid>
      <dc:creator />
      <dc:date>2011-08-17T01:34:03Z</dc:date>
    </item>
    <item>
      <title>Problem with listbox sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-listbox-sorting/m-p/324381#M119561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't know about Data Reduction, i read the manual and i managed to find a way to filter my data using section access with NTNAME. It works like a charm, and now i can finally avoid using an expression on my listboxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 10:33:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-listbox-sorting/m-p/324381#M119561</guid>
      <dc:creator>claudio1</dc:creator>
      <dc:date>2011-08-17T10:33:03Z</dc:date>
    </item>
    <item>
      <title>Problem with listbox sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-listbox-sorting/m-p/324382#M119562</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;Glad it helped you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 02:05:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-listbox-sorting/m-p/324382#M119562</guid>
      <dc:creator />
      <dc:date>2011-08-19T02:05:36Z</dc:date>
    </item>
  </channel>
</rss>

