<?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 order for combined fields and expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-order-for-combined-fields-and-expression/m-p/394063#M146934</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 use a complex sort expression.&lt;/P&gt;&lt;P&gt;Your example is too simple to suggest anything more specific.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes, you can allow the user to select the sort order. For example you can load some sort expressions in a field and use selected value as a sort expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Sep 2012 07:31:39 GMT</pubDate>
    <dc:creator>whiteline</dc:creator>
    <dc:date>2012-09-11T07:31:39Z</dc:date>
    <item>
      <title>Sort order for combined fields and expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-order-for-combined-fields-and-expression/m-p/394062#M146933</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;in my dimension i have combined profession and gender i.e. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bus driver - Man&lt;/P&gt;&lt;P&gt;Bus driver - Woman&lt;/P&gt;&lt;P&gt;Nurse - Man&lt;/P&gt;&lt;P&gt;Nurse - Woman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my chart i want to sort the lowest salary of women but at the same time keep the professions "grouped" so to speak. so that this doesn't happend:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bus driver - Man&lt;/P&gt;&lt;P&gt;Nurse - Woman&lt;/P&gt;&lt;P&gt;Bus driver - Woman&lt;/P&gt;&lt;P&gt;Nurse - Man&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i achive this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And one more thing. Is there a way to let users decide sort order in a chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 06:19:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-order-for-combined-fields-and-expression/m-p/394062#M146933</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-11T06:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sort order for combined fields and expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-order-for-combined-fields-and-expression/m-p/394063#M146934</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 use a complex sort expression.&lt;/P&gt;&lt;P&gt;Your example is too simple to suggest anything more specific.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes, you can allow the user to select the sort order. For example you can load some sort expressions in a field and use selected value as a sort expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 07:31:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-order-for-combined-fields-and-expression/m-p/394063#M146934</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-11T07:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sort order for combined fields and expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-order-for-combined-fields-and-expression/m-p/394064#M146935</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;Ok. I'm obviously not as good as you when it comes to writing complex sort expressions so this is what i need help with. Please give me an example. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again,&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 12:40:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-order-for-combined-fields-and-expression/m-p/394064#M146935</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-12T12:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sort order for combined fields and expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-order-for-combined-fields-and-expression/m-p/394065#M146936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt; Your example is too simple to suggest anything more specific.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;As for sorting. The easiest way is to load your data in the right order.&lt;/P&gt;&lt;P&gt;Then you can use Load Order to sort. And if you want to achive the same with expression you can use:&lt;/P&gt;&lt;P&gt;=FieldIndex('profession', profession)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can combine it with women salary:&lt;/P&gt;&lt;P&gt;=Sum(Salary) + 10000000*FieldIndex('profession', profession)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also replace '10000000' with the maximum Salary value calculated once in a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having more than one such different sort expresisons you can load them as string field in a table.&lt;/P&gt;&lt;P&gt;Then you can use =$(ThisSortField) as sort expression in your chart.&lt;/P&gt;&lt;P&gt;Restricting the user to always select only one value from this list you allow him to choose the sort order.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 16:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-order-for-combined-fields-and-expression/m-p/394065#M146936</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-12T16:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sort order for combined fields and expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-order-for-combined-fields-and-expression/m-p/394066#M146937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still have a problem with making a table with sort expressions and then pick them up in the chart sort order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have made an inline table with the value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression, Sort&lt;/P&gt;&lt;P&gt;"fractile(Sallary, 0.10)", P10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in my chart i did like you worte, in the expression for sort order i put =$(Expression)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nothing happend. If a make a textbox with the Expression =$(Expression) nothing comes up. I've also tride just =Expression and in the texbox everything seem fine but not in the sort order. I've also tried =concat(Expression) that aslo work for the textbox but still nothing in the chart sort order. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas what i'm doing wrong? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Sep 2012 09:13:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-order-for-combined-fields-and-expression/m-p/394066#M146937</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-22T09:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sort order for combined fields and expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-order-for-combined-fields-and-expression/m-p/394067#M146938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;First, try remove quates and use $(=Expression)&amp;nbsp; as sort expression.&lt;/P&gt;&lt;P&gt;Of course there should be only one Expression selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Sep 2012 09:57:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-order-for-combined-fields-and-expression/m-p/394067#M146938</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-22T09:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sort order for combined fields and expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-order-for-combined-fields-and-expression/m-p/394068#M146939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works perfect now! Thanks alot! really appreciate it! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Sep 2012 12:03:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-order-for-combined-fields-and-expression/m-p/394068#M146939</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-22T12:03:28Z</dc:date>
    </item>
  </channel>
</rss>

