<?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 on calculated dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-By-Expression-on-calculated-dimension/m-p/231243#M83013</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhijit,&lt;/P&gt;&lt;P&gt;One easy to achieve this sorting is done by using wildmatch. Just go through reference manual or help and read about wildmatch.&lt;/P&gt;&lt;P&gt;It will surely 100% work fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Apr 2011 11:39:42 GMT</pubDate>
    <dc:creator>gauravkhare</dc:creator>
    <dc:date>2011-04-27T11:39:42Z</dc:date>
    <item>
      <title>Sort By Expression on calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-By-Expression-on-calculated-dimension/m-p/231241#M83011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to apply custom sort on calculated dimension in chart.&lt;/P&gt;&lt;P&gt;but, i came to know from reference manual, Sort By Expession does not work on calculated dimension.&lt;/P&gt;&lt;P&gt;- Is their any other way to achieve this?&lt;/P&gt;&lt;P&gt;Below e.g. illustrates my requirement in detail.&lt;/P&gt;&lt;P&gt;Two fields viz., 'Product' and 'Sub Product' need to be shown in the chart depending upon selection in the respective fields.&lt;/P&gt;&lt;P&gt;Hence calcualted dimension is given in chart (not able to use more than one chart because of other reasons).&lt;/P&gt;&lt;P&gt;- Can we give predefined sort order at loading level?&lt;/P&gt;&lt;P&gt;e.g.If I want to view values of field product in below sort order&lt;/P&gt;&lt;P&gt;'J*','C*','B*','O*','*'&lt;/P&gt;&lt;P&gt;how to achieve this at the time of loading the data in qlikview?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 11:30:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-By-Expression-on-calculated-dimension/m-p/231241#M83011</guid>
      <dc:creator>AbhijitBansode</dc:creator>
      <dc:date>2011-04-27T11:30:41Z</dc:date>
    </item>
    <item>
      <title>AW:Sort By Expression on calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-By-Expression-on-calculated-dimension/m-p/231242#M83012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Abhijit,&lt;/P&gt;&lt;P&gt;yes, you can use an expression for sorting like this:&lt;/P&gt;&lt;P&gt;If(Field='abc',1, If(Field='aabd',2, If(Field='bcd',3, ...,N )))&lt;/P&gt;&lt;P&gt;or another way is to enter an inlinetable with sorted order before loading the data from the table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 11:36:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-By-Expression-on-calculated-dimension/m-p/231242#M83012</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2011-04-27T11:36:35Z</dc:date>
    </item>
    <item>
      <title>Sort By Expression on calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-By-Expression-on-calculated-dimension/m-p/231243#M83013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhijit,&lt;/P&gt;&lt;P&gt;One easy to achieve this sorting is done by using wildmatch. Just go through reference manual or help and read about wildmatch.&lt;/P&gt;&lt;P&gt;It will surely 100% work fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 11:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-By-Expression-on-calculated-dimension/m-p/231243#M83013</guid>
      <dc:creator>gauravkhare</dc:creator>
      <dc:date>2011-04-27T11:39:42Z</dc:date>
    </item>
    <item>
      <title>Sort By Expression on calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-By-Expression-on-calculated-dimension/m-p/231244#M83014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'd say that you defined strings as the dimension values.&lt;/P&gt;&lt;P&gt;You could use dual on the creation of the calculated dimension.&lt;/P&gt;&lt;P&gt;For example, if you write something like this:&lt;/P&gt;&lt;P&gt;= aggr( if(sum(value)&amp;lt;100, 'LOW', IF(SUM(VALUE&amp;lt;200),'MEDIUM' ... // AND SO ON&lt;/P&gt;&lt;P&gt;Instead of 'LOW' you could right&lt;/P&gt;&lt;P&gt;= aggr( if(sum(value)&amp;lt;100, DUAL('LOW', 1) ', IF(SUM(VALUE&amp;lt;200),DUAL('MEDIUM',2) ... // AND SO ON&lt;/P&gt;&lt;P&gt;It means QlikView should show the string 'LOW' but see this internally as the number one. Thus, you can sort the dimension by NUMERIC VALUE (ascending or descending).&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;If you need more help, we can post your calculated dimension expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 12:07:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-By-Expression-on-calculated-dimension/m-p/231244#M83014</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-04-27T12:07:30Z</dc:date>
    </item>
    <item>
      <title>Sort By Expression on calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-By-Expression-on-calculated-dimension/m-p/231245#M83015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for reply,&lt;/P&gt;&lt;P&gt;there are some problems related to suggestions given by you:&lt;/P&gt;&lt;P&gt;i can not use inline table because, there are not exact number of records every time ,&lt;/P&gt;&lt;P&gt;since sorting is done using wildmatch character, inline wizard does not allow me to use wild characters.&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;Inline&lt;/P&gt;&lt;P&gt;Load[&lt;/P&gt;&lt;P&gt;'J*','C*','O*','A*'&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;Inline wizard treats 'J*' as string not as value staring with 'J'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again,I'd tried using wildmatch() function at report level, but it is not working with calculated dimension.&lt;/P&gt;&lt;P&gt;Dual function can be used to assigning numeric value to individual string but,my requirement is to assign&lt;/P&gt;&lt;P&gt;numeric values to field values.&lt;/P&gt;&lt;P&gt;I've attached a sample qvw file with this.. please help me on the same.&lt;/P&gt;&lt;P&gt;Below is the required sorting order that need to be implemented in the application:&lt;/P&gt;&lt;P&gt;'O*','S*','M*','J*','*'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 14:31:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-By-Expression-on-calculated-dimension/m-p/231245#M83015</guid>
      <dc:creator>AbhijitBansode</dc:creator>
      <dc:date>2011-04-27T14:31:11Z</dc:date>
    </item>
    <item>
      <title>AW:Re: Sort By Expression on calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-By-Expression-on-calculated-dimension/m-p/231246#M83016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Abhijit,&lt;/P&gt;&lt;P&gt;look the attached file, does it solve your problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 14:40:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-By-Expression-on-calculated-dimension/m-p/231246#M83016</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2011-04-27T14:40:05Z</dc:date>
    </item>
    <item>
      <title>AW:Re: Sort By Expression on calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-By-Expression-on-calculated-dimension/m-p/231247#M83017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;thanks for quick reply Martina.&lt;BR /&gt;again, the approach provided by you works well on single field/dimension.&lt;BR /&gt;because in this approach also, we need to use 'Sort By Expression' and this type&lt;BR /&gt;of sort order does not work with calculated dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 15:19:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-By-Expression-on-calculated-dimension/m-p/231247#M83017</guid>
      <dc:creator>AbhijitBansode</dc:creator>
      <dc:date>2011-04-27T15:19:04Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Re: Sort By Expression on calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-By-Expression-on-calculated-dimension/m-p/231248#M83018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhijit,&lt;/P&gt;&lt;P&gt;here is a file again, here I entered the sort order with an expression like my first answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 15:24:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-By-Expression-on-calculated-dimension/m-p/231248#M83018</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2011-04-27T15:24:05Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Re: Sort By Expression on calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-By-Expression-on-calculated-dimension/m-p/231249#M83019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martina,thank you very very much for reply.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;but, my problem is still not resolved&lt;/P&gt;&lt;P&gt;here is the sort order entered in Sort by Expression in bar chart:&lt;/P&gt;&lt;P&gt;If(MainProduct Like 'J*',1,&lt;/P&gt;&lt;P&gt;If(MainProduct Like 'C*',2,&lt;/P&gt;&lt;P&gt;If(MainProduct Like 'B*',3,&lt;/P&gt;&lt;P&gt;If(MainProduct Like 'O*',4,&lt;/P&gt;&lt;P&gt;If(MainProduct Like 'S*',5,&lt;/P&gt;&lt;P&gt;If(MainProduct Like 'M*',6,99))))))&lt;/P&gt;&lt;P&gt;This means.. my bar chart should show values in the order of&lt;BR /&gt;JP,CS,ORA1,SP,MF&lt;BR /&gt;but,it is showing values in the order of&lt;BR /&gt;CS,JP,MF,ORA1,SP&lt;BR /&gt;even though sort by expression is given.&lt;/P&gt;&lt;P&gt;...&lt;BR /&gt;In table box sorting work fine because there is no calculated field in it.&lt;/P&gt;&lt;P&gt;I guess, above is not working because sort by expression does not work on calculated dimension.&lt;/P&gt;&lt;P&gt;Any alternative for this(without using different charts)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 06:22:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-By-Expression-on-calculated-dimension/m-p/231249#M83019</guid>
      <dc:creator>AbhijitBansode</dc:creator>
      <dc:date>2011-04-28T06:22:33Z</dc:date>
    </item>
    <item>
      <title>SV:Sort By Expression on calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-By-Expression-on-calculated-dimension/m-p/231250#M83020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhijit,&lt;/P&gt;&lt;P&gt;I believe that the confusion here is due to the fact that you are running a fairly old release of QlikView 9 (9.00.7314).&lt;BR /&gt;From Version 9 SR5 this behavior has changed and it is now possible to sort a calculated dimension by an expression.&lt;/P&gt;&lt;P&gt;I would recommend that you download SR7 (or version 10 SR2) from &lt;A href="http://www.qlik.com/download"&gt;www.qlik.com/download&lt;/A&gt; and this should resolve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2011 14:23:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-By-Expression-on-calculated-dimension/m-p/231250#M83020</guid>
      <dc:creator />
      <dc:date>2011-04-29T14:23:42Z</dc:date>
    </item>
    <item>
      <title>SV:Sort By Expression on calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-By-Expression-on-calculated-dimension/m-p/231251#M83021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot..&lt;/P&gt;&lt;P&gt;this is the main cause, i'm running QlikView 9 (9.00.7314) SR2.&lt;/P&gt;&lt;P&gt;Now i'll ask my client to update it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Apr 2011 09:16:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-By-Expression-on-calculated-dimension/m-p/231251#M83021</guid>
      <dc:creator>AbhijitBansode</dc:creator>
      <dc:date>2011-04-30T09:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sort By Expression on calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-By-Expression-on-calculated-dimension/m-p/231252#M83022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know its an old post, but this is an amazing solution. Thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 07:57:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-By-Expression-on-calculated-dimension/m-p/231252#M83022</guid>
      <dc:creator>gizzel123</dc:creator>
      <dc:date>2017-10-05T07:57:04Z</dc:date>
    </item>
  </channel>
</rss>

