<?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 Legend Color when using BG color expressions in bar chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Legend-Color-when-using-BG-color-expressions-in-bar-chart/m-p/1299314#M515454</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlik Community&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bar chart with sales by month, with two expressions; &lt;SPAN style="font-size: 10pt;"&gt;this year (&lt;STRONG&gt;Flag_TY&lt;/STRONG&gt;=1) and last year &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(&lt;STRONG&gt;Flag_LY&lt;/STRONG&gt;=1). This works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;However I&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; also have an additional flag field for a fiscal year: &lt;STRONG&gt;Flag_FY&lt;/STRONG&gt;. I want to indicate this in the chart by fading the color for months without &lt;STRONG&gt;Flag_FY&lt;/STRONG&gt;=1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;By using expressions in the background color for the expressions this works now, but I simply can't figure out how the legend color is determined? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I want the legend to follow the "base" color from the color tab and not the faded version I apply by expression - see following screenshot:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/165590_Capture.PNG" style="font-size: 13.3333px; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If I change the sorting of the Dimension - the legend color becomes correct. I would prefer it sorted like the above. And I would really like to understand why the sorting has an effect.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;So it must evaluate the background color expression somehow to create the legend? Maybe someone can suggest a workaround?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;I tried to create a copy of both expressions and let one pair be NULL for &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Flag_FY&lt;/STRONG&gt;=1 and the other pair be NULL for &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Flag_FY&lt;/STRONG&gt;=0. Unfortunately this creates a lot of empty white space in the chart and 4 expressions in the legend, so it is also a poor workaround.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I attached a QlikView document with the dummy data demonstrating my issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;My QV version is 11.20 SR12.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thank you in advance.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Jun 2017 07:30:27 GMT</pubDate>
    <dc:creator>mbrdenmark</dc:creator>
    <dc:date>2017-06-02T07:30:27Z</dc:date>
    <item>
      <title>Legend Color when using BG color expressions in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Legend-Color-when-using-BG-color-expressions-in-bar-chart/m-p/1299314#M515454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlik Community&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bar chart with sales by month, with two expressions; &lt;SPAN style="font-size: 10pt;"&gt;this year (&lt;STRONG&gt;Flag_TY&lt;/STRONG&gt;=1) and last year &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(&lt;STRONG&gt;Flag_LY&lt;/STRONG&gt;=1). This works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;However I&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; also have an additional flag field for a fiscal year: &lt;STRONG&gt;Flag_FY&lt;/STRONG&gt;. I want to indicate this in the chart by fading the color for months without &lt;STRONG&gt;Flag_FY&lt;/STRONG&gt;=1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;By using expressions in the background color for the expressions this works now, but I simply can't figure out how the legend color is determined? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I want the legend to follow the "base" color from the color tab and not the faded version I apply by expression - see following screenshot:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/165590_Capture.PNG" style="font-size: 13.3333px; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If I change the sorting of the Dimension - the legend color becomes correct. I would prefer it sorted like the above. And I would really like to understand why the sorting has an effect.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;So it must evaluate the background color expression somehow to create the legend? Maybe someone can suggest a workaround?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;I tried to create a copy of both expressions and let one pair be NULL for &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Flag_FY&lt;/STRONG&gt;=1 and the other pair be NULL for &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Flag_FY&lt;/STRONG&gt;=0. Unfortunately this creates a lot of empty white space in the chart and 4 expressions in the legend, so it is also a poor workaround.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I attached a QlikView document with the dummy data demonstrating my issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;My QV version is 11.20 SR12.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thank you in advance.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 07:30:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Legend-Color-when-using-BG-color-expressions-in-bar-chart/m-p/1299314#M515454</guid>
      <dc:creator>mbrdenmark</dc:creator>
      <dc:date>2017-06-02T07:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Legend Color when using BG color expressions in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Legend-Color-when-using-BG-color-expressions-in-bar-chart/m-p/1299315#M515455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here are few work arounds... they are not perfect, but you can try them out....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/165643_Capture.PNG" style="height: 164px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 13:46:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Legend-Color-when-using-BG-color-expressions-in-bar-chart/m-p/1299315#M515455</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-02T13:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Legend Color when using BG color expressions in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Legend-Color-when-using-BG-color-expressions-in-bar-chart/m-p/1299316#M515456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think it's evaluating the expression at all. Rather, I think it's taking the color of whatever the leftmost dimension value in your chart happens to be. That's why sorting or selecting can affect the color.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another imperfect workaround is to create a simple second chart, remove everything but the legend from it, remove the legend from your original chart, and put the new chart on top of the old. See attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can build a legend from four text boxes. I've resorted to that at least once before.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Jun 2017 00:58:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Legend-Color-when-using-BG-color-expressions-in-bar-chart/m-p/1299316#M515456</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2017-06-03T00:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Legend Color when using BG color expressions in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Legend-Color-when-using-BG-color-expressions-in-bar-chart/m-p/1299317#M515457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works! For some reason when I open your attached document, I don't see those black lines in chart 1 + 2. So they are perfect. &lt;/P&gt;&lt;P&gt;I tried with NULL expression to create something like this, but Qlik just hide legends.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 06:51:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Legend-Color-when-using-BG-color-expressions-in-bar-chart/m-p/1299317#M515457</guid>
      <dc:creator>mbrdenmark</dc:creator>
      <dc:date>2017-06-06T06:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Legend Color when using BG color expressions in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Legend-Color-when-using-BG-color-expressions-in-bar-chart/m-p/1299318#M515458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is a clever use of multiple charts. &lt;/P&gt;&lt;P&gt;I have had some other legend layout issues before, where this could have solved it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 06:55:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Legend-Color-when-using-BG-color-expressions-in-bar-chart/m-p/1299318#M515458</guid>
      <dc:creator>mbrdenmark</dc:creator>
      <dc:date>2017-06-06T06:55:30Z</dc:date>
    </item>
  </channel>
</rss>

