<?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 How to force a sort on a listbox in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-force-a-sort-on-a-listbox/m-p/871893#M304771</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table that contains 2 columns,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Producat_Cat_Name and Cross_Flag. From this table I need to create a listbox that looks as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Category1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Category2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cross_Flag &amp;gt;&amp;gt;this one contains all the products that did not fit into the first 2 categories.&lt;/P&gt;&lt;P&gt;The listbox also needs to be sorted in the above way.&lt;/P&gt;&lt;P&gt;To do this I have created another table that has a sort order column, but its not working.&lt;/P&gt;&lt;P&gt;I have attached the App, please take a look at the properties of the Listbox.&lt;/P&gt;&lt;P&gt;My main problem is that once I add an expression to the sort then the fileds start to change position, looks like they are getting sorted by State, even thought I have that option disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know I need to provide more details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Apr 2015 06:34:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-21T06:34:45Z</dc:date>
    <item>
      <title>How to force a sort on a listbox</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-force-a-sort-on-a-listbox/m-p/871893#M304771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table that contains 2 columns,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Producat_Cat_Name and Cross_Flag. From this table I need to create a listbox that looks as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Category1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Category2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cross_Flag &amp;gt;&amp;gt;this one contains all the products that did not fit into the first 2 categories.&lt;/P&gt;&lt;P&gt;The listbox also needs to be sorted in the above way.&lt;/P&gt;&lt;P&gt;To do this I have created another table that has a sort order column, but its not working.&lt;/P&gt;&lt;P&gt;I have attached the App, please take a look at the properties of the Listbox.&lt;/P&gt;&lt;P&gt;My main problem is that once I add an expression to the sort then the fileds start to change position, looks like they are getting sorted by State, even thought I have that option disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know I need to provide more details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 06:34:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-force-a-sort-on-a-listbox/m-p/871893#M304771</guid>
      <dc:creator />
      <dc:date>2015-04-21T06:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a sort on a listbox</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-force-a-sort-on-a-listbox/m-p/871894#M304772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leo,&lt;/P&gt;&lt;P&gt;Please attach desired solution in excel.I am not much clear about this post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Raghvendra Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 06:40:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-force-a-sort-on-a-listbox/m-p/871894#M304772</guid>
      <dc:creator>raghvendrasingh</dc:creator>
      <dc:date>2015-04-21T06:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a sort on a listbox</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-force-a-sort-on-a-listbox/m-p/871895#M304773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached an excel spreadsheet.&lt;/P&gt;&lt;P&gt;I just want the list box to contain values Category1, Category2, Cross_Flag&lt;/P&gt;&lt;P&gt;and I need them to be Sorted in that way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 06:50:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-force-a-sort-on-a-listbox/m-p/871895#M304773</guid>
      <dc:creator />
      <dc:date>2015-04-21T06:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a sort on a listbox</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-force-a-sort-on-a-listbox/m-p/871896#M304774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest to create a new dimension in the script instead of having an expression in the listbox...sorting is so much less a pain in creating a temp table with the desired sorting order and drop it at the end of the script. Then you can use the 'Load order' as sorting.&lt;/P&gt;&lt;P&gt;Please find attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 06:51:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-force-a-sort-on-a-listbox/m-p/871896#M304774</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2015-04-21T06:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a sort on a listbox</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-force-a-sort-on-a-listbox/m-p/871897#M304775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;would it still work if Im doing a binary load for my data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 06:57:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-force-a-sort-on-a-listbox/m-p/871897#M304775</guid>
      <dc:creator />
      <dc:date>2015-04-21T06:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a sort on a listbox</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-force-a-sort-on-a-listbox/m-p/871898#M304776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think not, as the binary load must come first.&lt;/P&gt;&lt;P&gt;Maybe the easiest would be to have a consecutive letter or number in front and use text order like&lt;/P&gt;&lt;P&gt;A) Cat 1&lt;/P&gt;&lt;P&gt;B) Cat 2&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Z) Cross_Flag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 07:01:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-force-a-sort-on-a-listbox/m-p/871898#M304776</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2015-04-21T07:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a sort on a listbox</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-force-a-sort-on-a-listbox/m-p/871899#M304777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the &lt;SPAN style="font-family: 'courier new', courier;"&gt;dual()&lt;/SPAN&gt; function in an initial/successive (after BINARY) load. This has a couple of advantages:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;No weird listbox behaviour&lt;/LI&gt;&lt;LI&gt;No complex listbox expressions&lt;/LI&gt;&lt;LI&gt;Calculations are relegated to the script. If you can do it in your script, that's where you should do it.&lt;/LI&gt;&lt;LI&gt;Sort order is forced, whatever you do with it later on in the UI.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See if the attachment suits your needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 07:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-force-a-sort-on-a-listbox/m-p/871899#M304777</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-04-21T07:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a sort on a listbox</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-force-a-sort-on-a-listbox/m-p/871900#M304778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It almost worked,&lt;/P&gt;&lt;P&gt;But is there a bug in the software where the moment you enter any kind of expression in the Sort tab is automatically changes the sort by the state?&lt;/P&gt;&lt;P&gt;In other words, when I enter any expressions it begins to change the sorting after every click.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 00:02:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-force-a-sort-on-a-listbox/m-p/871900#M304778</guid>
      <dc:creator />
      <dc:date>2015-04-22T00:02:22Z</dc:date>
    </item>
  </channel>
</rss>

