<?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 Values Disappearing from Legend with Set Analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Values-Disappearing-from-Legend-with-Set-Analysis/m-p/1459821#M36046</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a chart that is rendering the last 3 years given the maximum selected Year. So if 2017 is selected, the chart will show 2015, 2016 and 2017. The set works fine but the issue is that when I select my max year, the first two years disappear from the legend and the lines also lose their color. This seems to be related to my year selection because if I select all three years 2015 - 2017, everything is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oddly enough this behavior is only apparent in a visual chart. Tables include the data as we would expect. Indeed, the line chart shows all three lines. It just loses sight of the coloring and legend. ?????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the expression I am using:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sum({&amp;lt;%_ordtype={1},Year={"&amp;gt;=$(=year(max({&amp;lt;%_ordtype={1}&amp;gt;}[Post Date]))-2)&amp;lt;=$(=year(max({&amp;lt;%_ordtype={1}&amp;gt;}[Post Date])))"}&amp;gt;}m.extprice)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is anybody aware of this issue and possible know a way to correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When selecting 1 year notice the other two lines correctly display but with gray color and the legend is missing those values.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QC_01.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/189102_QC_01.png" style="height: 292px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Going ahead and selecting the three years gives us the chart as I would expect to see.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QC_02.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/189103_QC_02.png" style="height: 293px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jan 2018 18:39:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-01-05T18:39:09Z</dc:date>
    <item>
      <title>Values Disappearing from Legend with Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Values-Disappearing-from-Legend-with-Set-Analysis/m-p/1459821#M36046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a chart that is rendering the last 3 years given the maximum selected Year. So if 2017 is selected, the chart will show 2015, 2016 and 2017. The set works fine but the issue is that when I select my max year, the first two years disappear from the legend and the lines also lose their color. This seems to be related to my year selection because if I select all three years 2015 - 2017, everything is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oddly enough this behavior is only apparent in a visual chart. Tables include the data as we would expect. Indeed, the line chart shows all three lines. It just loses sight of the coloring and legend. ?????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the expression I am using:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sum({&amp;lt;%_ordtype={1},Year={"&amp;gt;=$(=year(max({&amp;lt;%_ordtype={1}&amp;gt;}[Post Date]))-2)&amp;lt;=$(=year(max({&amp;lt;%_ordtype={1}&amp;gt;}[Post Date])))"}&amp;gt;}m.extprice)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is anybody aware of this issue and possible know a way to correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When selecting 1 year notice the other two lines correctly display but with gray color and the legend is missing those values.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QC_01.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/189102_QC_01.png" style="height: 292px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Going ahead and selecting the three years gives us the chart as I would expect to see.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QC_02.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/189103_QC_02.png" style="height: 293px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2018 18:39:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Values-Disappearing-from-Legend-with-Set-Analysis/m-p/1459821#M36046</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-05T18:39:09Z</dc:date>
    </item>
  </channel>
</rss>

