<?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: Why does the legend expression colors disappear when writing code in Background Color? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Why-does-the-legend-expression-colors-disappear-when-writing/m-p/1092798#M363302</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post a small sample QVW that demonstrates your issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jan 2016 20:27:13 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-01-28T20:27:13Z</dc:date>
    <item>
      <title>Why does the legend expression colors disappear when writing code in Background Color?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-does-the-legend-expression-colors-disappear-when-writing/m-p/1092797#M363301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm new to qlikview and have a problem with legend for my charts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As soon as I write statement in the background color for an expression, the legend color for that particular expression disappears (even if the statement is commented). But as soon as I remove all text in the Background Color definition, the color shows in the legend.&lt;/P&gt;&lt;P&gt;I can't figure out why? I'm not sure if this is &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;sufficient information in order to understand the whole problem, let me know if that's the case.&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp; Please see screenshots.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 13:32:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-does-the-legend-expression-colors-disappear-when-writing/m-p/1092797#M363301</guid>
      <dc:creator />
      <dc:date>2016-01-28T13:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the legend expression colors disappear when writing code in Background Color?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-does-the-legend-expression-colors-disappear-when-writing/m-p/1092798#M363302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post a small sample QVW that demonstrates your issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 20:27:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-does-the-legend-expression-colors-disappear-when-writing/m-p/1092798#M363302</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-28T20:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the legend expression colors disappear when writing code in Background Color?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-does-the-legend-expression-colors-disappear-when-writing/m-p/1092799#M363303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically the problem is that I use three expressions that I use as stacked. I also want to filter these expression so the chart shows one expression at a time, but in order to keep the same colors that I want when these expressions are stacked, i need to hard code these colors in the Background color for each expression otherwise the Bars will have different colors when filtered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when I write my code in the background color for each expression, the legend color disappears for the expressions in the stacked view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have provided new screenshots in hope for better understanding of my problem. If this still not is understandable, I wil try to make a smaller QVW sample. Thanks!&lt;/P&gt;&lt;P&gt;&lt;IMG alt="EmptyDef.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/112955_EmptyDef.jpg" style="height: 281px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When code IS written, legend color disappears.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="CodeInDef.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/112956_CodeInDef.jpg" style="height: 213px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="FilteredExpression.jpg" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/112958_FilteredExpression.jpg" style="height: 291px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Image above illustrates how the correct color green is shown in the legend since the Bars also has the same color.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 08:57:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-does-the-legend-expression-colors-disappear-when-writing/m-p/1092799#M363303</guid>
      <dc:creator />
      <dc:date>2016-01-29T08:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the legend expression colors disappear when writing code in Background Color?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-does-the-legend-expression-colors-disappear-when-writing/m-p/1092800#M363304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I small sample QVW will definitely help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the problem is that the legend colors are evaluated once per chart, in a global context, similar to a text box expression or the expression for your expression header. I assume the background color expression won't render to an unambiguous, distinct value in this context.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 12:20:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-does-the-legend-expression-colors-disappear-when-writing/m-p/1092800#M363304</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-29T12:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the legend expression colors disappear when writing code in Background Color?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-does-the-legend-expression-colors-disappear-when-writing/m-p/1092801#M363305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;Did you find a solution for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 13:31:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-does-the-legend-expression-colors-disappear-when-writing/m-p/1092801#M363305</guid>
      <dc:creator>jaygarcia</dc:creator>
      <dc:date>2016-04-07T13:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the legend expression colors disappear when writing code in Background Color?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-does-the-legend-expression-colors-disappear-when-writing/m-p/1092802#M363306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also ran into this problem, but found a solution (with help from the post of &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt; ). The "if" statement in the background color expression must have a value for the "else" condition (third argument in het "if" function). This color will be applied to the legend.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 12:25:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-does-the-legend-expression-colors-disappear-when-writing/m-p/1092802#M363306</guid>
      <dc:creator />
      <dc:date>2017-02-15T12:25:36Z</dc:date>
    </item>
  </channel>
</rss>

