<?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: Re: Sorting the values in a listbox when using an expression in the sort tab in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-the-values-in-a-listbox-when-using-an-expression-in-the/m-p/620233#M544831</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi maria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you use the sorting expression, when trying Gysbert's "Sort by State Ascending" suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;without a sorting expression, just sorting by state ascending and text ascending seems to work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_115602_Pic2.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/57974_QlikCommunity_Thread_115602_Pic2.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whereas other settings show the behaviour, you described:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_115602_Pic1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/57975_QlikCommunity_Thread_115602_Pic1.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_115602_Pic4.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/57976_QlikCommunity_Thread_115602_Pic4.JPG.jpg" style="width: 620px; height: 228px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_115602_Pic3.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/57977_QlikCommunity_Thread_115602_Pic3.JPG.jpg" style="width: 620px; height: 225px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 27 Apr 2014 00:16:31 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2014-04-27T00:16:31Z</dc:date>
    <item>
      <title>Sorting the values in a listbox when using an expression in the sort tab</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-the-values-in-a-listbox-when-using-an-expression-in-the/m-p/620229#M544827</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 want to know if anyone knows how to sort the values in a listbox, when one is forced to have an expression in the sort tab?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to use the same expression from the general tab in the sort tab&lt;/P&gt;&lt;P&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: #800000; font-size: 8pt;"&gt;datakilde&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Aarlig', &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Aktivitetsnavn&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-&amp;nbsp; otherwise the listbox didn't show the associated values (from a selected value from another listbox) in the top of the listbox - which aren't very user friendly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as a consequence the sorting in alphabetic order is no longer works...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See my sort tab below.&lt;/P&gt;&lt;P&gt;Kind Regards Maria&lt;/P&gt;&lt;P&gt;&lt;IMG alt="112.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/57930_112.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 09:23:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-the-values-in-a-listbox-when-using-an-expression-in-the/m-p/620229#M544827</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-25T09:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting the values in a listbox when using an expression in the sort tab</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-the-values-in-a-listbox-when-using-an-expression-in-the/m-p/620230#M544828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sometimes helps to set Sort by State to Ascending instead of Auto Ascending.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 11:06:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-the-values-in-a-listbox-when-using-an-expression-in-the/m-p/620230#M544828</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-04-25T11:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting the values in a listbox when using an expression in the sort tab</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-the-values-in-a-listbox-when-using-an-expression-in-the/m-p/620231#M544829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I already did that - but the result is the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 14:08:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-the-values-in-a-listbox-when-using-an-expression-in-the/m-p/620231#M544829</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-25T14:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting the values in a listbox when using an expression in the sort tab</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-the-values-in-a-listbox-when-using-an-expression-in-the/m-p/620232#M544830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post a qlikview document that demonstrates the problem? If you're worried about confidential data, please read this document first: &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-1290" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 14:11:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-the-values-in-a-listbox-when-using-an-expression-in-the/m-p/620232#M544830</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-04-25T14:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Sorting the values in a listbox when using an expression in the sort tab</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-the-values-in-a-listbox-when-using-an-expression-in-the/m-p/620233#M544831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi maria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you use the sorting expression, when trying Gysbert's "Sort by State Ascending" suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;without a sorting expression, just sorting by state ascending and text ascending seems to work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_115602_Pic2.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/57974_QlikCommunity_Thread_115602_Pic2.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whereas other settings show the behaviour, you described:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_115602_Pic1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/57975_QlikCommunity_Thread_115602_Pic1.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_115602_Pic4.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/57976_QlikCommunity_Thread_115602_Pic4.JPG.jpg" style="width: 620px; height: 228px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_115602_Pic3.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/57977_QlikCommunity_Thread_115602_Pic3.JPG.jpg" style="width: 620px; height: 225px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Apr 2014 00:16:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-the-values-in-a-listbox-when-using-an-expression-in-the/m-p/620233#M544831</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-04-27T00:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting the values in a listbox when using an expression in the sort tab</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-the-values-in-a-listbox-when-using-an-expression-in-the/m-p/620234#M544832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have now made my document ready to be posted in here.&lt;/P&gt;&lt;P&gt;Probably a stupid question, but how do I oploead the Qlikview document?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 06:39:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-the-values-in-a-listbox-when-using-an-expression-in-the/m-p/620234#M544832</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-07T06:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Sorting the values in a listbox when using an expression in the sort tab</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-the-values-in-a-listbox-when-using-an-expression-in-the/m-p/620235#M544833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the editor window click "use advanced editor" in the upper right and then "attach" in the lower right corner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 09:09:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-the-values-in-a-listbox-when-using-an-expression-in-the/m-p/620235#M544833</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-05-07T09:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Sorting the values in a listbox when using an expression in the sort tab</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-the-values-in-a-listbox-when-using-an-expression-in-the/m-p/620236#M544834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, thanks. Here is my Qlikview document - I hope someone is able to help me sort the values in the listbox in the bottom - where one can search. I hope it is not &lt;SPAN class="hps"&gt;inconvenient &lt;/SPAN&gt;that I used the scramble option?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 09:14:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-the-values-in-a-listbox-when-using-an-expression-in-the/m-p/620236#M544834</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-07T09:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting the values in a listbox when using an expression in the sort tab</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-the-values-in-a-listbox-when-using-an-expression-in-the/m-p/620237#M544835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see any sorting issues when using the sorting setting "state ascending" like Gysbert suggested:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="58463" alt="QlikCommunity_Thread_115602_Pic3.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/58463_QlikCommunity_Thread_115602_Pic3.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="58464" alt="QlikCommunity_Thread_115602_Pic2.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/58464_QlikCommunity_Thread_115602_Pic2.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you still expect any different behaviour?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 10:47:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-the-values-in-a-listbox-when-using-an-expression-in-the/m-p/620237#M544835</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-05-07T10:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Sorting the values in a listbox when using an expression in the sort tab</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-the-values-in-a-listbox-when-using-an-expression-in-the/m-p/620238#M544836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I unclick the expression in the sorting tab and only activate state with "ascending" and text with "a-z", I get the following:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="listbox.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/58476_listbox.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="shot.png" class="jive-image jiveImage" src="https://community.qlik.com/legacyfs/online/58475_shot.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 11:05:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-the-values-in-a-listbox-when-using-an-expression-in-the/m-p/620238#M544836</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-07T11:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting the values in a listbox when using an expression in the sort tab</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-the-values-in-a-listbox-when-using-an-expression-in-the/m-p/620239#M544837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used the sorting expression whe I tried Ascending in stead of auto ascending. I have to have that expression, because the variable "aktivitetsnavn" have a filter (daily data versus yearly data). Ypu can see that I have the same expression in the general tab - because I only want to have shown a subset of the values of the variable "aktivitetsnavn".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 11:18:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-the-values-in-a-listbox-when-using-an-expression-in-the/m-p/620239#M544837</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-07T11:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting the values in a listbox when using an expression in the sort tab</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-the-values-in-a-listbox-when-using-an-expression-in-the/m-p/620240#M544838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can see that you deleted the expression in the sort tab?&lt;/P&gt;&lt;P&gt;I have to have the expression, otherwise the associated values in the listbox "Aktivitetsnavn" doesn't appear in the top, when I choose a value in the listbox "Fakultet".&lt;/P&gt;&lt;P&gt;I found out that I had this problem because I had to use an expression in the general tab.&lt;/P&gt;&lt;P&gt;If I only had chosen a variable from my data&amp;nbsp; set (instead of writing an expression), I wouldn't have any problems with the sorting in the listbox and I wouldn't have any problems with the associated values not being shown in the top of the listbox.&lt;/P&gt;&lt;P&gt;BUT I have to use the expression in the genereal tab, becuase otherwise I get too many values in the listbox - and in the one sheet I only need data with the daily data and in the other sheet I only need the yearly data being shown.&lt;/P&gt;&lt;P&gt;I discovered that because of the expression in the general tab, I had to copy the expression into the sort tab also - otherwise the&amp;nbsp; associated values didn't appear in the top of the listbox. But this resulted in the values in the listbox not being shown in alphabetic order.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 May 2014 19:17:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-the-values-in-a-listbox-when-using-an-expression-in-the/m-p/620240#M544838</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-18T19:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting the values in a listbox when using an expression in the sort tab</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-the-values-in-a-listbox-when-using-an-expression-in-the/m-p/620241#M544839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got a tip from Stackoverflow that said:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;There are multiple solutions on this, but I think the correct one, would be to create a field in your datamodel, that contains just the values that need in the listbox.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Listboxes are not very good at filtering data. So take your if statement, and put it into the source table:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(datakilde='Aarlig', Aktivitetsnavn) as Aktivitetsnavn_2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Then you don't have to struggle with filtering data in listboxes and your sorting will be correct.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;After I put the if statement in the script instead of the listbox, it worked. Now I don't need to use an expression in the general tab and because of that I don't have any problems with the associated values not being shown i the top of the listbox. And therefore I don't need the expression i the sort tab either- which now has resulted in no problems with the sorting in the listbox.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 07:30:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-the-values-in-a-listbox-when-using-an-expression-in-the/m-p/620241#M544839</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-20T07:30:10Z</dc:date>
    </item>
  </channel>
</rss>

