<?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 list box by expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-list-box-by-expression/m-p/1519756#M748480</link>
    <description>&lt;P&gt;Well, since you are using expression for sorting, I guess you have to disregard the selection in that expression, like:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;=Min(&lt;STRONG&gt;{1}&lt;/STRONG&gt;Num(Date))&lt;/PRE&gt;</description>
    <pubDate>Wed, 12 Dec 2018 11:05:03 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2018-12-12T11:05:03Z</dc:date>
    <item>
      <title>Sort list box by expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-list-box-by-expression/m-p/1519698#M748477</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I&amp;nbsp; have a list box which displays a list of weeks for several years. The list is associated with the "Week" dimension. Week is associated with a "day" dimension in the data model (see attached image).&lt;/P&gt;&lt;P&gt;The values are sorted by:&lt;/P&gt;&lt;P&gt;- state: increasing automatic&lt;/P&gt;&lt;P&gt;- expression: =Min(Num(Date)) decreasing&lt;/P&gt;&lt;P&gt;- numeric value : decreasing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that when I make a selection in this list box the sort is no longer respected (see attached image). I would like that the sort be&amp;nbsp;always decreasing no matter a selection or not.&lt;/P&gt;&lt;P&gt;Do you have an idea what's wrong ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-list-box-by-expression/m-p/1519698#M748477</guid>
      <dc:creator>edemerdjieva</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sort list box by expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-list-box-by-expression/m-p/1519709#M748478</link>
      <description>Uncheck 'State' sort order</description>
      <pubDate>Wed, 12 Dec 2018 10:19:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-list-box-by-expression/m-p/1519709#M748478</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-12-12T10:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sort list box by expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-list-box-by-expression/m-p/1519751#M748479</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22949"&gt;@tresB&lt;/a&gt;&lt;/P&gt;&lt;P&gt;It's not working, unfortunately (see image attached).&lt;/P&gt;&lt;P&gt;If I select an old week (and not the last one), there is still the problem with sort.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 10:59:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-list-box-by-expression/m-p/1519751#M748479</guid>
      <dc:creator>edemerdjieva</dc:creator>
      <dc:date>2018-12-12T10:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sort list box by expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-list-box-by-expression/m-p/1519756#M748480</link>
      <description>&lt;P&gt;Well, since you are using expression for sorting, I guess you have to disregard the selection in that expression, like:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;=Min(&lt;STRONG&gt;{1}&lt;/STRONG&gt;Num(Date))&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Dec 2018 11:05:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-list-box-by-expression/m-p/1519756#M748480</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-12-12T11:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sort list box by expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-list-box-by-expression/m-p/1519873#M748481</link>
      <description>&lt;P&gt;Ok, this one worked. By the way, I had to re-check the state in order to have the selected week(s) in the begining of the coloumn.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to understand why QV ignored previously the sorting ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 13:45:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-list-box-by-expression/m-p/1519873#M748481</guid>
      <dc:creator>edemerdjieva</dc:creator>
      <dc:date>2018-12-12T13:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sort list box by expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-list-box-by-expression/m-p/1520159#M748482</link>
      <description>When you select a value, qlik runs your expression on that selected value(s) only; i.e. - the values beyond selections then become out-of-scope. Effectively this makes qlik sort withing the in-scope (selected) value(s) - and rest are not considered in sort. By using {1}, you force qlik to dis-regard the selections and consider all values as in-scope.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.</description>
      <pubDate>Thu, 13 Dec 2018 07:23:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-list-box-by-expression/m-p/1520159#M748482</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-12-13T07:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sort list box by expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-list-box-by-expression/m-p/1520224#M748483</link>
      <description>&lt;P&gt;It's clear now :).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 09:17:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-list-box-by-expression/m-p/1520224#M748483</guid>
      <dc:creator>edemerdjieva</dc:creator>
      <dc:date>2018-12-13T09:17:58Z</dc:date>
    </item>
  </channel>
</rss>

