<?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 How do I set conditional colors for a chart based on Y-value? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-I-set-conditional-colors-for-a-chart-based-on-Y-value/m-p/1090990#M923929</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am charting survey results (see image below). I want to maintain the color scheme below (green for best to red for worst). The issue is that some results sets are so small that there could be only 1 response, and if that is 'Never' then it appears as Green since that's the first color in my scheme.&lt;/P&gt;&lt;P&gt;How can I use conditional formatting so that 'Always' is set to Green, 'Never' is set to Red, etc?&lt;/P&gt;&lt;P&gt;All the examples I've seen here for conditional colors seem to be based on the values (count or sum).&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV_chart.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/121209_QV_chart.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>How do I set conditional colors for a chart based on Y-value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-set-conditional-colors-for-a-chart-based-on-Y-value/m-p/1090990#M923929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am charting survey results (see image below). I want to maintain the color scheme below (green for best to red for worst). The issue is that some results sets are so small that there could be only 1 response, and if that is 'Never' then it appears as Green since that's the first color in my scheme.&lt;/P&gt;&lt;P&gt;How can I use conditional formatting so that 'Always' is set to Green, 'Never' is set to Red, etc?&lt;/P&gt;&lt;P&gt;All the examples I've seen here for conditional colors seem to be based on the values (count or sum).&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV_chart.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/121209_QV_chart.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-set-conditional-colors-for-a-chart-based-on-Y-value/m-p/1090990#M923929</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set conditional colors for a chart based on Y-value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-set-conditional-colors-for-a-chart-based-on-Y-value/m-p/1090991#M923930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Durgampudi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do it by setting the background color of your expression. Please see the following image for reference:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="foto.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/121215_foto.png" style="height: 410px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;In this example, I have multiple status a case can go through, so in order to keep the same color for each status, I added an expression in the background option. This expression evaluates the state of the current row and returns that color that it should have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- Karla &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 13:10:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-set-conditional-colors-for-a-chart-based-on-Y-value/m-p/1090991#M923930</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-11T13:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set conditional colors for a chart based on Y-value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-set-conditional-colors-for-a-chart-based-on-Y-value/m-p/1090992#M923931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is his a dimension, or a collection of expressions? If its the latter, you could use persistent option on the Colors tab to lock the color to a particular expression. If it is a dimension, then go with the above option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 13:25:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-set-conditional-colors-for-a-chart-based-on-Y-value/m-p/1090992#M923931</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-04-11T13:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set conditional colors for a chart based on Y-value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-set-conditional-colors-for-a-chart-based-on-Y-value/m-p/1090993#M923932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are the values of that dimension are fixed like what you have in the bar graph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then create a inline load&lt;/P&gt;&lt;P&gt;as below&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Load * Inline [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;YourxaxisDimension, Color&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Always,RGB(0,255,0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Never, RGB(255,0,0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load * Inline [&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;YourxaxisDimension, Red,Green,Blue&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Always,0,255,0&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Never, 255,0,0&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;...&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;...&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;];&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that goto the chart and expression, background and add&lt;/P&gt;&lt;P&gt;=RgB(Red,Green,Blue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please attached sample where I have fixed two colors for &lt;STRONG&gt;Always&lt;/STRONG&gt; and &lt;STRONG&gt;Never&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also try one more option in the colors tab i.e. Persistant, but some how that doesn't work all times.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 13:31:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-set-conditional-colors-for-a-chart-based-on-Y-value/m-p/1090993#M923932</guid>
      <dc:creator>kkkumar82</dc:creator>
      <dc:date>2016-04-11T13:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set conditional colors for a chart based on Y-value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-set-conditional-colors-for-a-chart-based-on-Y-value/m-p/1090994#M923933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karla,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, what you've shown seems to be what I need, but for some reason my expression is not having the expected effect. &lt;/P&gt;&lt;P&gt;I don't have a syntax error. Do you see what I may be doing wrong below?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV_chart2.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/121290_QV_chart2.jpg" style="height: 198px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 22:40:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-set-conditional-colors-for-a-chart-based-on-Y-value/m-p/1090994#M923933</guid>
      <dc:creator />
      <dc:date>2016-04-11T22:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set conditional colors for a chart based on Y-value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-set-conditional-colors-for-a-chart-based-on-Y-value/m-p/1090995#M923934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far, I don't see any error in your expression, could you please share a sample qvw so I could check it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- Karla&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 23:15:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-set-conditional-colors-for-a-chart-based-on-Y-value/m-p/1090995#M923934</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-11T23:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set conditional colors for a chart based on Y-value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-set-conditional-colors-for-a-chart-based-on-Y-value/m-p/1090996#M923935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karla,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QVW is attached. Thanks so much for looking into this!&lt;/P&gt;&lt;P&gt;~ Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 23:44:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-set-conditional-colors-for-a-chart-based-on-Y-value/m-p/1090996#M923935</guid>
      <dc:creator />
      <dc:date>2016-04-11T23:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set conditional colors for a chart based on Y-value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-set-conditional-colors-for-a-chart-based-on-Y-value/m-p/1090997#M923936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you add a '=' symbol before pick and check&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 11:50:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-set-conditional-colors-for-a-chart-based-on-Y-value/m-p/1090997#M923936</guid>
      <dc:creator>kkkumar82</dc:creator>
      <dc:date>2016-04-12T11:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set conditional colors for a chart based on Y-value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-set-conditional-colors-for-a-chart-based-on-Y-value/m-p/1090998#M923937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also&lt;/P&gt;&lt;P&gt;I see "F. "&amp;nbsp; is missing for Never.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check attached file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 11:53:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-set-conditional-colors-for-a-chart-based-on-Y-value/m-p/1090998#M923937</guid>
      <dc:creator>kkkumar82</dc:creator>
      <dc:date>2016-04-12T11:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set conditional colors for a chart based on Y-value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-set-conditional-colors-for-a-chart-based-on-Y-value/m-p/1090999#M923938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've checked the expression, and so far I only found a typo mistake, you have Never instead of F. Never. And the green color for Always and Mostly look very similar, maybe you could change the tone. I'm sending you the QVW back, adding some different color so you can see the effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- Karla&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 11:56:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-set-conditional-colors-for-a-chart-based-on-Y-value/m-p/1090999#M923938</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-12T11:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set conditional colors for a chart based on Y-value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-set-conditional-colors-for-a-chart-based-on-Y-value/m-p/1091000#M923939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Karla and Kumar!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 13:07:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-set-conditional-colors-for-a-chart-based-on-Y-value/m-p/1091000#M923939</guid>
      <dc:creator />
      <dc:date>2016-04-12T13:07:37Z</dc:date>
    </item>
  </channel>
</rss>

