<?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: dynamical change sort order in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/dynamical-change-sort-order/m-p/620948#M228593</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use expression in Sort options. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could set this to very complex logic containing lot of ifs, so the buttons will act based upon the conditions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Feb 2014 10:55:08 GMT</pubDate>
    <dc:creator>marchoctober</dc:creator>
    <dc:date>2014-02-23T10:55:08Z</dc:date>
    <item>
      <title>dynamical change sort order</title>
      <link>https://community.qlik.com/t5/QlikView/dynamical-change-sort-order/m-p/620945#M228590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest a way to change the sort order by click of a button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Feb 2014 08:00:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dynamical-change-sort-order/m-p/620945#M228590</guid>
      <dc:creator>raghavsurya</dc:creator>
      <dc:date>2014-02-23T08:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: dynamical change sort order</title>
      <link>https://community.qlik.com/t5/QlikView/dynamical-change-sort-order/m-p/620946#M228591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can only interfer on the sort order by putting some variables in the "sort by expression" options.&lt;/P&gt;&lt;P&gt;See attached sample that allows you to change priorities on the fly...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Feb 2014 08:05:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dynamical-change-sort-order/m-p/620946#M228591</guid>
      <dc:creator>agilos_mla</dc:creator>
      <dc:date>2014-02-23T08:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: dynamical change sort order</title>
      <link>https://community.qlik.com/t5/QlikView/dynamical-change-sort-order/m-p/620947#M228592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create a variable and use it in sort expression.&lt;/P&gt;&lt;P&gt;create buttons or text boxes with trigger to set variable to what u want it to be...&lt;/P&gt;&lt;P&gt;Please attach a sample so that we can help u in the same.&lt;/P&gt;&lt;P&gt;-sundar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Feb 2014 08:13:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dynamical-change-sort-order/m-p/620947#M228592</guid>
      <dc:creator>sundarakumar</dc:creator>
      <dc:date>2014-02-23T08:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: dynamical change sort order</title>
      <link>https://community.qlik.com/t5/QlikView/dynamical-change-sort-order/m-p/620948#M228593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use expression in Sort options. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could set this to very complex logic containing lot of ifs, so the buttons will act based upon the conditions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Feb 2014 10:55:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dynamical-change-sort-order/m-p/620948#M228593</guid>
      <dc:creator>marchoctober</dc:creator>
      <dc:date>2014-02-23T10:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: dynamical change sort order</title>
      <link>https://community.qlik.com/t5/QlikView/dynamical-change-sort-order/m-p/620949#M228594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Raghav&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Double clicking the column header of table sorts that column, would that suffice.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Best Regards,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Bill&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Feb 2014 12:01:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dynamical-change-sort-order/m-p/620949#M228594</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-23T12:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: dynamical change sort order</title>
      <link>https://community.qlik.com/t5/QlikView/dynamical-change-sort-order/m-p/620950#M228595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you want to do it from a button click - as Bill says double clicking the column head will re-sort - provided that you have a valid sort order ticked for all fields (eg. numeric or text).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to use a button then you will have to use an Expression based sort.&amp;nbsp; It may be that you put the same expression as you have for the main expression into the sort expression - or you could use something else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can't change the Ascending/Descending option on the sort order in code you will need to build the sort order into your expression.&amp;nbsp; If it is a numeric you could flip the order by adding your value onto a very big negative number - which is either there or not based on a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do this, create a button to flip the value of a variable (&lt;STRONG&gt;vSortFlag&lt;/STRONG&gt;) between zero and one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make your expression something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(-999999999999999 * vSortFlag) + sum(Value)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace &lt;STRONG&gt;sum(Value)&lt;/STRONG&gt; with your expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will probably want to turn off &lt;STRONG&gt;Interactive Sort&lt;/STRONG&gt; on the &lt;STRONG&gt;Sort&lt;/STRONG&gt; tab.&amp;nbsp; You will definitely want to turn off the &lt;STRONG&gt;Sort Indicator&lt;/STRONG&gt; on the &lt;STRONG&gt;Presentation&lt;/STRONG&gt; tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't know how to create the buttons check this document:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4289"&gt;QlikView App: At The Qlik Of A Button&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Feb 2014 20:26:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dynamical-change-sort-order/m-p/620950#M228595</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2014-02-23T20:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: dynamical change sort order</title>
      <link>https://community.qlik.com/t5/QlikView/dynamical-change-sort-order/m-p/620951#M228596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I frequently use buttons to toggle listboxes between Frequency and Alpha sort -- using the expression method. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Feb 2014 22:06:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dynamical-change-sort-order/m-p/620951#M228596</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-02-23T22:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: dynamical change sort order</title>
      <link>https://community.qlik.com/t5/QlikView/dynamical-change-sort-order/m-p/620952#M228597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hadn't thought of that use case.&amp;nbsp; No one has asked me to do that as yet!&amp;nbsp; Thanks for the tip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Feb 2014 22:16:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dynamical-change-sort-order/m-p/620952#M228597</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2014-02-23T22:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: dynamical change sort order</title>
      <link>https://community.qlik.com/t5/QlikView/dynamical-change-sort-order/m-p/620953#M228598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 12:24:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dynamical-change-sort-order/m-p/620953#M228598</guid>
      <dc:creator>raghavsurya</dc:creator>
      <dc:date>2014-02-24T12:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: dynamical change sort order</title>
      <link>https://community.qlik.com/t5/QlikView/dynamical-change-sort-order/m-p/620954#M228599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have trouble sorting a line chart based on Frequency - Ascending. On opening the qvw the order changes from Frequency - ascending to descending. Do you have any suggestion to fix this issue??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Malaika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 14:52:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dynamical-change-sort-order/m-p/620954#M228599</guid>
      <dc:creator>tellmalaika17</dc:creator>
      <dc:date>2016-12-06T14:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: dynamical change sort order</title>
      <link>https://community.qlik.com/t5/QlikView/dynamical-change-sort-order/m-p/620955#M228600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What version and SR of product are you running?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Dec 2016 04:27:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dynamical-change-sort-order/m-p/620955#M228600</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-12-11T04:27:10Z</dc:date>
    </item>
  </channel>
</rss>

