<?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 Sort by expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-by-expression/m-p/232021#M83693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Tyler Waterfall wrote:Any idea if there is an impact on performance with the use of an 'if' statement in the sort?&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I haven't done any testing, but I would expect the performance impact to be negligible. Generally speaking, when the IF is &lt;EM&gt;outside&lt;/EM&gt; of the aggregation, it should be evaluated once, and therefore not impact performance. When the IF is &lt;EM&gt;inside&lt;/EM&gt; of the aggregation, it needs to be evaluated multiple times, and can therefore cause performance problems with large data sets. This one is outside of the aggregation, so should be fine in theory.&lt;/P&gt;&lt;P&gt;Edit: Slight misstatement, perhaps. The IF is INSIDE of the aggregation by the dimensions of the chart. What I meant is that it isn't inside of the sum(). I'm not doing a sum(if()). Being evaluated once for each row of a chart isn't typically a problem, but perhaps could be in very large straight tables or pivot tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Mar 2010 16:39:57 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2010-03-17T16:39:57Z</dc:date>
    <item>
      <title>Sort by expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-expression/m-p/232012#M83684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you can see I have created a bar chart.&lt;BR /&gt;Now suppose that I want to order the Sales expression in ascending (like the example) but the Cost expression in descending order.&lt;/P&gt;&lt;P&gt;how can I do this ?&lt;BR /&gt;as you can see the dimension is the category, and I don't need to change the sort rule on the dimension but on the expression.&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 23:42:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-expression/m-p/232012#M83684</guid>
      <dc:creator />
      <dc:date>2010-02-04T23:42:25Z</dc:date>
    </item>
    <item>
      <title>Sort by expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-expression/m-p/232013#M83685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about putting Cost as negative on the chart with&lt;/P&gt;&lt;P&gt;Sum (CostValue * -1)&lt;/P&gt;&lt;P&gt;Would this be acceptable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2010 04:25:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-expression/m-p/232013#M83685</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2010-02-05T04:25:36Z</dc:date>
    </item>
    <item>
      <title>Sort by expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-expression/m-p/232014#M83686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it works...but it's really bad &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;&lt;P&gt;other solution ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2010 08:45:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-expression/m-p/232014#M83686</guid>
      <dc:creator />
      <dc:date>2010-02-05T08:45:56Z</dc:date>
    </item>
    <item>
      <title>Sort by expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-expression/m-p/232015#M83687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it works...but it's really bad &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;&lt;P&gt;other solution ?&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2010 08:45:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-expression/m-p/232015#M83687</guid>
      <dc:creator />
      <dc:date>2010-02-05T08:45:59Z</dc:date>
    </item>
    <item>
      <title>Sort by expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-expression/m-p/232016#M83688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not that I know of. May be messing around with macros would do the trick, but nothing firm I can think of.&lt;/P&gt;&lt;P&gt;At least you have one option now (better then nothing). &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2010 18:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-expression/m-p/232016#M83688</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2010-02-05T18:53:29Z</dc:date>
    </item>
    <item>
      <title>Sort by expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-expression/m-p/232017#M83689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is one approach. Instead of using a grouped expression, I create a grouped dimension, then use getcurrentfield() to figure out which "expression" is selected, and calculate it and sort it appropriately. I'm hoping that some future version of QlikView lets us name expression groups and use a similar function to figure out which expression is selected. Or perhaps it already does, and I just don't know about it yet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2010 21:23:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-expression/m-p/232017#M83689</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-02-05T21:23:51Z</dc:date>
    </item>
    <item>
      <title>Sort by expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-expression/m-p/232018#M83690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow!!! Excellent John. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2010 22:39:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-expression/m-p/232018#M83690</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2010-02-05T22:39:45Z</dc:date>
    </item>
    <item>
      <title>Sort by expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-expression/m-p/232019#M83691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wonderful...it works!&lt;/P&gt;&lt;P&gt;thanks a lot :))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Feb 2010 00:08:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-expression/m-p/232019#M83691</guid>
      <dc:creator />
      <dc:date>2010-02-06T00:08:36Z</dc:date>
    </item>
    <item>
      <title>Sort by expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-expression/m-p/232020#M83692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for sharing. I like the idea.&lt;/P&gt;&lt;P&gt;Any idea if there is an impact on performance with the use of an 'if' statement in the sort?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 17:38:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-expression/m-p/232020#M83692</guid>
      <dc:creator />
      <dc:date>2010-03-12T17:38:40Z</dc:date>
    </item>
    <item>
      <title>Sort by expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-expression/m-p/232021#M83693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Tyler Waterfall wrote:Any idea if there is an impact on performance with the use of an 'if' statement in the sort?&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I haven't done any testing, but I would expect the performance impact to be negligible. Generally speaking, when the IF is &lt;EM&gt;outside&lt;/EM&gt; of the aggregation, it should be evaluated once, and therefore not impact performance. When the IF is &lt;EM&gt;inside&lt;/EM&gt; of the aggregation, it needs to be evaluated multiple times, and can therefore cause performance problems with large data sets. This one is outside of the aggregation, so should be fine in theory.&lt;/P&gt;&lt;P&gt;Edit: Slight misstatement, perhaps. The IF is INSIDE of the aggregation by the dimensions of the chart. What I meant is that it isn't inside of the sum(). I'm not doing a sum(if()). Being evaluated once for each row of a chart isn't typically a problem, but perhaps could be in very large straight tables or pivot tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 16:39:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-expression/m-p/232021#M83693</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-03-17T16:39:57Z</dc:date>
    </item>
  </channel>
</rss>

