<?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: Sort chart by Listbox Selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-chart-by-Listbox-Selection/m-p/459915#M171663</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks whiteline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was indeed the right path to take.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the answer to my problem through this thread:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/349829"&gt;http://community.qlik.com/message/349829&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Jun 2013 03:37:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-06-18T03:37:31Z</dc:date>
    <item>
      <title>Sort chart by Listbox Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-chart-by-Listbox-Selection/m-p/459913#M171661</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;What I'm trying to create for my report is a listbox containing fields of a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My goal is for the user to be able to sort the table based on the selection they have made in the list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Listbox:&lt;/P&gt;&lt;P&gt;Name&lt;/P&gt;&lt;P&gt;Inception Date&lt;/P&gt;&lt;P&gt;Cover No&lt;/P&gt;&lt;P&gt;Premium&lt;/P&gt;&lt;P&gt;Cover Status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Inception Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Cover No&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Premium&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Cover Status&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Tony&lt;/TD&gt;&lt;TD&gt;11/06/2013&lt;/TD&gt;&lt;TD&gt;A0001&lt;/TD&gt;&lt;TD&gt;$200&lt;/TD&gt;&lt;TD&gt;Bound&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Matt&lt;/TD&gt;&lt;TD&gt;11/05/2013&lt;/TD&gt;&lt;TD&gt;A0002&lt;/TD&gt;&lt;TD&gt;$50&lt;/TD&gt;&lt;TD&gt;WIP&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user chooses Name - the chart sorts by "Name" and alphabetical order.&lt;/P&gt;&lt;P&gt;If user chooses Premium - the chart sorts by "Premium" and lowest to highest amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I've done so far is load this into the script (Fields from my actual data):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _Sort, _Result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Conservation Ref, conservationid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Trading Name, tradingname&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABN, abn&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inception Date, inceptiondate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Conversation Status,conver_state&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a variable and called it "vSort" which = "_Result".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then In my table I sorted by expression and input "=($(vSort))".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then created a listbox using "_Sort".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I am having is that When I click a field which only contains numerical data, it will sort by it, however, when trying to sort by a field which contains text, it won't sort at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm kind of at a loss at the moment, so any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 05:07:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-chart-by-Listbox-Selection/m-p/459913#M171661</guid>
      <dc:creator />
      <dc:date>2013-05-15T05:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sort chart by Listbox Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-chart-by-Listbox-Selection/m-p/459914#M171662</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;You have to create a corresponding numeric field for each text field with sort weight value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 07:37:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-chart-by-Listbox-Selection/m-p/459914#M171662</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2013-05-15T07:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sort chart by Listbox Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-chart-by-Listbox-Selection/m-p/459915#M171663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks whiteline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was indeed the right path to take.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the answer to my problem through this thread:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/349829"&gt;http://community.qlik.com/message/349829&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 03:37:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-chart-by-Listbox-Selection/m-p/459915#M171663</guid>
      <dc:creator />
      <dc:date>2013-06-18T03:37:31Z</dc:date>
    </item>
  </channel>
</rss>

