<?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 values in a chart legend in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-values-in-a-chart-legend/m-p/304762#M579249</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello togehter,&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;i created a dimension with&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt;=&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;IF&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;A&lt;/SPAN&gt; &amp;gt;=1 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;A&lt;/SPAN&gt;&amp;lt;1.25,'iinteresting',&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;A&lt;/SPAN&gt;&amp;gt;=1.25 &lt;SPAN style="color: #0000ff;"&gt;and &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;A&lt;/SPAN&gt;&amp;lt;2.25,'empty',&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;A&lt;/SPAN&gt;&amp;gt;=2.25 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;A&lt;/SPAN&gt;&amp;lt;3.25,'grandfather',&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;A&lt;/SPAN&gt;&amp;gt;=3.25 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;A&lt;/SPAN&gt;&amp;lt;=4,'nearly')))) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;My legend at the bar-chart shows the values at following order:&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;* nearly&lt;/DIV&gt;&lt;DIV&gt;* grandfather&lt;/DIV&gt;&lt;DIV&gt;* interesting&lt;/DIV&gt;&lt;DIV&gt;* empty&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;But i want that the legend shows the values like my formula. So i write the formula in the formula field at the sort register. but this doesn't work.Can anyone help me please? Thanks!&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Feb 2012 15:10:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-21T15:10:24Z</dc:date>
    <item>
      <title>Sort values in a chart legend</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-values-in-a-chart-legend/m-p/304762#M579249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello togehter,&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;i created a dimension with&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt;=&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;IF&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;A&lt;/SPAN&gt; &amp;gt;=1 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;A&lt;/SPAN&gt;&amp;lt;1.25,'iinteresting',&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;A&lt;/SPAN&gt;&amp;gt;=1.25 &lt;SPAN style="color: #0000ff;"&gt;and &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;A&lt;/SPAN&gt;&amp;lt;2.25,'empty',&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;A&lt;/SPAN&gt;&amp;gt;=2.25 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;A&lt;/SPAN&gt;&amp;lt;3.25,'grandfather',&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;A&lt;/SPAN&gt;&amp;gt;=3.25 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;A&lt;/SPAN&gt;&amp;lt;=4,'nearly')))) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;My legend at the bar-chart shows the values at following order:&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;* nearly&lt;/DIV&gt;&lt;DIV&gt;* grandfather&lt;/DIV&gt;&lt;DIV&gt;* interesting&lt;/DIV&gt;&lt;DIV&gt;* empty&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;But i want that the legend shows the values like my formula. So i write the formula in the formula field at the sort register. but this doesn't work.Can anyone help me please? Thanks!&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 15:10:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-values-in-a-chart-legend/m-p/304762#M579249</guid>
      <dc:creator />
      <dc:date>2012-02-21T15:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sort values in a chart legend</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-values-in-a-chart-legend/m-p/304763#M579250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Hi,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;You try using the dual function to sort you values.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;IF(A &amp;gt;=1 and A&amp;lt;1.25,Dual('iinteresting',1),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; if(A&amp;gt;=1.25 and A&amp;lt;2.25,Dual('empty',2),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(A&amp;gt;=2.25 and A&amp;lt;3.25,Dual('grandfather',3),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(A&amp;gt;=3.25 and A&amp;lt;=4,Dual('nearly',4)))))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sort this dimension by numeric. Best way to do this is, create this as a column in back script and use the field in front end as show in this attached post.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hope this helps you.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;-Sridhar&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 15:24:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-values-in-a-chart-legend/m-p/304763#M579250</guid>
      <dc:creator>sridhar240784</dc:creator>
      <dc:date>2012-02-21T15:24:30Z</dc:date>
    </item>
    <item>
      <title>Sort values in a chart legend</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-values-in-a-chart-legend/m-p/304764#M579251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Hi,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Have you considered using Dual() function? Something like this...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;IF(A &amp;gt;=1 and A&amp;lt;1.25, Dual('iinteresting', 1),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(A&amp;gt;=1.25 and A&amp;lt;2.25, Dual('empty', 2),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(A&amp;gt;=2.25 and A&amp;lt;3.25, Dual('grandfather', 3),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(A&amp;gt;=3.25 and A&amp;lt;=4,Dual('nearly', 4))))) &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Cheers - DV&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 15:27:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-values-in-a-chart-legend/m-p/304764#M579251</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-02-21T15:27:22Z</dc:date>
    </item>
    <item>
      <title>Sort values in a chart legend</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-values-in-a-chart-legend/m-p/304765#M579252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 15:29:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-values-in-a-chart-legend/m-p/304765#M579252</guid>
      <dc:creator />
      <dc:date>2012-02-21T15:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sort values in a chart legend</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-values-in-a-chart-legend/m-p/304766#M579253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But what if the legend doesn't represent each separate member in a dimension;&lt;/P&gt;&lt;P&gt;But a separate expression; i.e. sum of income, sum of bonus ; &lt;/P&gt;&lt;P&gt;What determines the order then?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2014 00:26:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-values-in-a-chart-legend/m-p/304766#M579253</guid>
      <dc:creator />
      <dc:date>2014-09-19T00:26:05Z</dc:date>
    </item>
  </channel>
</rss>

