<?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: Line chart - Custom Legend order in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Line-chart-Custom-Legend-order/m-p/681924#M247231</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can sort your values which show first but line positioning can not be changed,because it is defined by values,&lt;/P&gt;&lt;P&gt;you can sort your line by giving the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Aug 2014 11:34:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-14T11:34:40Z</dc:date>
    <item>
      <title>Line chart - Custom Legend order</title>
      <link>https://community.qlik.com/t5/QlikView/Line-chart-Custom-Legend-order/m-p/681920#M247227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a line chart where the legend is in an order which I would want to change.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="chart leged.png" class="jive-image" src="/legacyfs/online/64427_chart leged.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you notice though Stream 2 (orange line) is on the top whereas Stream 1 (blue) is way below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to sort the legend based on the order in which the chart appears&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my legend would be&lt;/P&gt;&lt;P&gt;Stream 2&lt;/P&gt;&lt;P&gt;Stream 3&lt;/P&gt;&lt;P&gt;Stream 6&lt;/P&gt;&lt;P&gt;Stream 5&lt;/P&gt;&lt;P&gt;Stream 4&lt;/P&gt;&lt;P&gt;Stream 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I achieve this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 10:57:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-chart-Custom-Legend-order/m-p/681920#M247227</guid>
      <dc:creator />
      <dc:date>2014-08-14T10:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart - Custom Legend order</title>
      <link>https://community.qlik.com/t5/QlikView/Line-chart-Custom-Legend-order/m-p/681921#M247228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i thing its depends upon value you have in data. so its not passiable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the values range from 0-300 in case and blue value is near by zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thats why looking as above&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 11:12:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-chart-Custom-Legend-order/m-p/681921#M247228</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-08-14T11:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart - Custom Legend order</title>
      <link>https://community.qlik.com/t5/QlikView/Line-chart-Custom-Legend-order/m-p/681922#M247229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Edit the group you defined. On the Group Settings window click on the Sort Orders button. Then select the dimension of the group you want to sort. Choose to sort by Expression. Use an expression like:&lt;EM&gt; =match(only({1} &lt;STRONG&gt;MyStreamDimension&lt;/STRONG&gt;), 'Stream 2','Stream 3','Stream 6','Stream 5','Stream 4','Stream 1'). &lt;/EM&gt;Replace &lt;EM&gt;&lt;EM&gt;&lt;STRONG&gt;MyStreamDimension &lt;/STRONG&gt;&lt;/EM&gt;&lt;/EM&gt;with the name of the dimension you want to sort.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 11:15:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-chart-Custom-Legend-order/m-p/681922#M247229</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-08-14T11:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart - Custom Legend order</title>
      <link>https://community.qlik.com/t5/QlikView/Line-chart-Custom-Legend-order/m-p/681923#M247230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An interesting way from the QV Cookbook by Stephen Redmond. I definitely recommend you to buy it :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="CookBook.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/64423_CookBook.jpg" style="width: 620px; height: 1102px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 11:21:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-chart-Custom-Legend-order/m-p/681923#M247230</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2014-08-14T11:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart - Custom Legend order</title>
      <link>https://community.qlik.com/t5/QlikView/Line-chart-Custom-Legend-order/m-p/681924#M247231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can sort your values which show first but line positioning can not be changed,because it is defined by values,&lt;/P&gt;&lt;P&gt;you can sort your line by giving the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 11:34:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-chart-Custom-Legend-order/m-p/681924#M247231</guid>
      <dc:creator />
      <dc:date>2014-08-14T11:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart - Custom Legend order</title>
      <link>https://community.qlik.com/t5/QlikView/Line-chart-Custom-Legend-order/m-p/681925#M247232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain how this will work - my stream dimension will grow and is not only limited to the 6 streams.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, how will this help to order the legend in terms of value - today maybe stream 2 is on the top - but tomorrow it might be stream 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 12:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-chart-Custom-Legend-order/m-p/681925#M247232</guid>
      <dc:creator />
      <dc:date>2014-08-14T12:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart - Custom Legend order</title>
      <link>https://community.qlik.com/t5/QlikView/Line-chart-Custom-Legend-order/m-p/681926#M247233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ioannis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use this when I have only one dimension, in this case its a cyclic group and when I use&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Dual&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Month Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Month Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(cyc_ProStr) &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,' '),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;my expression&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&amp;nbsp; where cyc_ProStr is the name of my cyclic group&amp;nbsp; - &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;It doesn't work &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 12:52:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-chart-Custom-Legend-order/m-p/681926#M247233</guid>
      <dc:creator />
      <dc:date>2014-08-14T12:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart - Custom Legend order</title>
      <link>https://community.qlik.com/t5/QlikView/Line-chart-Custom-Legend-order/m-p/681927#M247234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bhawna - sorting on the expression worked &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 13:15:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-chart-Custom-Legend-order/m-p/681927#M247234</guid>
      <dc:creator />
      <dc:date>2014-08-14T13:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart - Custom Legend order</title>
      <link>https://community.qlik.com/t5/QlikView/Line-chart-Custom-Legend-order/m-p/681928#M247235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm also trying to figure out how to customize the order of my legend as I don't want it to automatically sort in asc or desc order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to understand how the expression works. I found the documentation in help file for the "match" function but I don't understand what the "only({1} MyStreamDimension)" part of your expression does. Is "only" a function? I couldn't find it in the documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please elaborate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 14:37:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-chart-Custom-Legend-order/m-p/681928#M247235</guid>
      <dc:creator />
      <dc:date>2014-10-09T14:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart - Custom Legend order</title>
      <link>https://community.qlik.com/t5/QlikView/Line-chart-Custom-Legend-order/m-p/681929#M247236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read this blog post for more information of the only() function: &lt;A _jive_internal="true" class="font-color-normal" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/08/03/the-only-function" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3d3d3d;"&gt;The Only Function&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 16:24:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-chart-Custom-Legend-order/m-p/681929#M247236</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-10-09T16:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart - Custom Legend order</title>
      <link>https://community.qlik.com/t5/QlikView/Line-chart-Custom-Legend-order/m-p/681930#M247237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert. That's a very interesting function. Wonder why it's not in the search result of functions in help system. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 12:53:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-chart-Custom-Legend-order/m-p/681930#M247237</guid>
      <dc:creator />
      <dc:date>2014-10-10T12:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart - Custom Legend order</title>
      <link>https://community.qlik.com/t5/QlikView/Line-chart-Custom-Legend-order/m-p/681931#M247238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No idea. If I search the help file I can find it just fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 12:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-chart-Custom-Legend-order/m-p/681931#M247238</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-10-10T12:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart - Custom Legend order</title>
      <link>https://community.qlik.com/t5/QlikView/Line-chart-Custom-Legend-order/m-p/681932#M247239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Must be user error on my part then. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 13:06:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-chart-Custom-Legend-order/m-p/681932#M247239</guid>
      <dc:creator />
      <dc:date>2014-10-10T13:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart - Custom Legend order</title>
      <link>https://community.qlik.com/t5/QlikView/Line-chart-Custom-Legend-order/m-p/681933#M247240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For this,&lt;/P&gt;&lt;P&gt;If you want static change in your legend then you can change order in expression so accordingly that will change order in chart and make color for line.&lt;/P&gt;&lt;P&gt;But for dynamic need to think.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 13:08:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-chart-Custom-Legend-order/m-p/681933#M247240</guid>
      <dc:creator />
      <dc:date>2014-10-10T13:08:47Z</dc:date>
    </item>
  </channel>
</rss>

