<?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: Dynamic labels for line chart legend. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-labels-for-line-chart-legend/m-p/624307#M229726</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Danny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot modify the legend as you wish (add some characters). You can try the following to see if the trick may suit you:&lt;/P&gt;&lt;P&gt;un check the legend&lt;/P&gt;&lt;P&gt;check Values on data point&lt;/P&gt;&lt;P&gt;modify your expression to use the dual function, sth that will return a single value, at the last displayed value:&lt;/P&gt;&lt;P&gt;dual(if(Month = Max(Total Month), Year &amp;amp; '&amp;nbsp; ' &amp;amp; Sum(Total Sales), ''), Sum(Sales))&lt;/P&gt;&lt;P&gt;The first part of the dual is the text part that will be displayed (we have checked the data point)&lt;/P&gt;&lt;P&gt;This text part will be displayed fr the last month only&lt;/P&gt;&lt;P&gt;The text being displayed is the year and the sales.&lt;/P&gt;&lt;P&gt;The numeric part of the expression will be used to draw the chart: Sum(Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Feb 2014 14:56:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-24T14:56:19Z</dc:date>
    <item>
      <title>Dynamic labels for line chart legend.</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-labels-for-line-chart-legend/m-p/624305#M229724</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 with "Month" as the first dimension, "Year" as the second dimension, and "Sales" as the expression. Every line in the graph represents a different year (2012,2013,2014), so you can compare monthly sales for each year. I need to create a dynamic labels for the "Year" legend. Next to each year, i want to display in addition to the year number, the total sales for the year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 14:08:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-labels-for-line-chart-legend/m-p/624305#M229724</guid>
      <dc:creator />
      <dc:date>2014-02-24T14:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic labels for line chart legend.</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-labels-for-line-chart-legend/m-p/624306#M229725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think that this is possible, but why don't you try this solution: &lt;A href="https://community.qlik.com/message/320040"&gt;Re: Can I add label to lines inside chart?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 14:26:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-labels-for-line-chart-legend/m-p/624306#M229725</guid>
      <dc:creator>veidlburkhard</dc:creator>
      <dc:date>2014-02-24T14:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic labels for line chart legend.</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-labels-for-line-chart-legend/m-p/624307#M229726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Danny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot modify the legend as you wish (add some characters). You can try the following to see if the trick may suit you:&lt;/P&gt;&lt;P&gt;un check the legend&lt;/P&gt;&lt;P&gt;check Values on data point&lt;/P&gt;&lt;P&gt;modify your expression to use the dual function, sth that will return a single value, at the last displayed value:&lt;/P&gt;&lt;P&gt;dual(if(Month = Max(Total Month), Year &amp;amp; '&amp;nbsp; ' &amp;amp; Sum(Total Sales), ''), Sum(Sales))&lt;/P&gt;&lt;P&gt;The first part of the dual is the text part that will be displayed (we have checked the data point)&lt;/P&gt;&lt;P&gt;This text part will be displayed fr the last month only&lt;/P&gt;&lt;P&gt;The text being displayed is the year and the sales.&lt;/P&gt;&lt;P&gt;The numeric part of the expression will be used to draw the chart: Sum(Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 14:56:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-labels-for-line-chart-legend/m-p/624307#M229726</guid>
      <dc:creator />
      <dc:date>2014-02-24T14:56:19Z</dc:date>
    </item>
  </channel>
</rss>

