<?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 Conditional Sorting of List Box Values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Sorting-of-List-Box-Values/m-p/288059#M107148</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Erich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I select another valuen in the list box, it moves these back into alphabetical order. Is there an expression that can sort by whether a value is selected (state) and then keep these three values at the next values in the unselected list below what is selected?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 May 2011 09:57:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-05-11T09:57:59Z</dc:date>
    <item>
      <title>Conditional Sorting of List Box Values</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Sorting-of-List-Box-Values/m-p/288056#M107145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have three values in a list box that I wish to show at the top of the list box then show all other values below in alphabetical order. The three values are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No Specialty (ALL)&lt;/P&gt;&lt;P&gt;No Specialty (Doctor)&lt;/P&gt;&lt;P&gt;No Specialty (Nurse)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 15:39:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Sorting-of-List-Box-Values/m-p/288056#M107145</guid>
      <dc:creator />
      <dc:date>2011-05-10T15:39:26Z</dc:date>
    </item>
    <item>
      <title>Conditional Sorting of List Box Values</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Sorting-of-List-Box-Values/m-p/288057#M107146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a probably not-so-perfect solution :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create a column where these 3 values have a 1 and others 0 then use this column to sort by the average of the expression. this could be done with a mapping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 16:20:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Sorting-of-List-Box-Values/m-p/288057#M107146</guid>
      <dc:creator />
      <dc:date>2011-05-10T16:20:46Z</dc:date>
    </item>
    <item>
      <title>Conditional Sorting of List Box Values</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Sorting-of-List-Box-Values/m-p/288058#M107147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this auxiliary field on script definetly works!&amp;nbsp; &lt;/P&gt;&lt;P&gt;If you want to create something outside scritp, you could use match function: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort by expression, descending and use: &lt;/P&gt;&lt;P&gt;= match( YOUR_FIELD, 'No Specialty (Nurse)', 'No Specialty (Doctor)', 'No Specialty (ALL)')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function will return: &lt;/P&gt;&lt;P&gt;No Specialty (ALL) =&amp;nbsp; 3 &lt;/P&gt;&lt;P&gt;No Specialty (Doctor) = 2&lt;/P&gt;&lt;P&gt;No Specialty (Nurse) =1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the others = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 18:24:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Sorting-of-List-Box-Values/m-p/288058#M107147</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-10T18:24:39Z</dc:date>
    </item>
    <item>
      <title>Conditional Sorting of List Box Values</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Sorting-of-List-Box-Values/m-p/288059#M107148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Erich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I select another valuen in the list box, it moves these back into alphabetical order. Is there an expression that can sort by whether a value is selected (state) and then keep these three values at the next values in the unselected list below what is selected?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 09:57:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Sorting-of-List-Box-Values/m-p/288059#M107148</guid>
      <dc:creator />
      <dc:date>2011-05-11T09:57:59Z</dc:date>
    </item>
    <item>
      <title>Conditional Sorting of List Box Values</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Sorting-of-List-Box-Values/m-p/288060#M107149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, you want to keep this order all the time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change it to: &lt;/P&gt;&lt;P&gt;= match( only ({1} YOUR_FIELD) , 'No Specialty (Nurse)', 'No Specialty (Doctor)', 'No Specialty (ALL)')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression must be the only 'Sort by' condition;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 10:46:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Sorting-of-List-Box-Values/m-p/288060#M107149</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-11T10:46:46Z</dc:date>
    </item>
  </channel>
</rss>

