<?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: Expressions - Assigning Background Color by Value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expressions-Assigning-Background-Color-by-Value/m-p/1594146#M508418</link>
    <description>&lt;P&gt;Thank you this worked! That makes so much sense, and&amp;nbsp;I'm not sure why I was trying to use Sum now that I think about it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I'm trying to mark your comment as the solution, but&amp;nbsp;it just goes to an error page. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; Thank you for your help!&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jun 2019 13:40:19 GMT</pubDate>
    <dc:creator>SClem</dc:creator>
    <dc:date>2019-06-20T13:40:19Z</dc:date>
    <item>
      <title>Expressions - Assigning Background Color by Value</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions-Assigning-Background-Color-by-Value/m-p/1593787#M508414</link>
      <description>&lt;P&gt;I have a table with two columns - Name and Percentage. I am visualizing this information in a pie chart, dimensioned by groupings of Percentage. Here is the formula for my calculated dimension in case that is helpful. I am grouping the values by every 3.5%, offset by 2.5.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=class([Availability (%)],3.5,[Availability (%)],2.5)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using a nested&amp;nbsp;IF in my&amp;nbsp;expression to change the background color of the dimension.&lt;/P&gt;&lt;P&gt;if x &amp;lt; 90&amp;nbsp;--&amp;gt; light red &lt;EM&gt;RGB(253,225,219)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;else if x &amp;lt; 97 --&amp;gt; light blue &lt;EM&gt;RGB(221,233,236)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;else (aka x &amp;gt;= 97) --&amp;gt; dark blue RGB(20,72,143)&lt;/P&gt;&lt;P&gt;Here is my formula:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if(Sum([Availability (%)])&amp;lt;90,RGB(253,225,219),if(Sum([Availability (%)])&amp;lt;97,RGB(221,233,236),RGB(20,72,143)))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue I'm seeing is that my grouping with values 93.5 &amp;lt;= x &amp;lt; 97 are showing as dark blue, when they should be showing light blue. Can someone help me find my error?&lt;/P&gt;&lt;P&gt;Also since it's probably related, why is there a static value showing in my legend?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qlikview-screenshot.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14037iEBCCEE91727CECD1/image-size/large?v=v2&amp;amp;px=999" role="button" title="qlikview-screenshot.png" alt="qlikview-screenshot.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qlikview-screenshot2.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14038i5C63771C84C8316D/image-size/large?v=v2&amp;amp;px=999" role="button" title="qlikview-screenshot2.png" alt="qlikview-screenshot2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:37:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions-Assigning-Background-Color-by-Value/m-p/1593787#M508414</guid>
      <dc:creator>SClem</dc:creator>
      <dc:date>2024-11-16T20:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions - Assigning Background Color by Value</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions-Assigning-Background-Color-by-Value/m-p/1593800#M508415</link>
      <description>&lt;P&gt;Would you be able to attach you qvw file to check this out?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 18:27:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions-Assigning-Background-Color-by-Value/m-p/1593800#M508415</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-19T18:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions - Assigning Background Color by Value</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions-Assigning-Background-Color-by-Value/m-p/1593843#M508416</link>
      <description>&lt;P&gt;Thank you, I have attached the qvw file.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 21:11:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions-Assigning-Background-Color-by-Value/m-p/1593843#M508416</guid>
      <dc:creator>SClem</dc:creator>
      <dc:date>2019-06-19T21:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions - Assigning Background Color by Value</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions-Assigning-Background-Color-by-Value/m-p/1594053#M508417</link>
      <description>&lt;P&gt;Instead of using Sum() in your color expression, use Avg&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;If(Avg([Availability (%)]) &amp;lt; 90, RGB(253,225,219),
If(Avg([Availability (%)]) &amp;lt; 97, RGB(221,233,236), RGB(20,72,143)))&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 592px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14079i6F4D8633B2823128/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 10:11:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions-Assigning-Background-Color-by-Value/m-p/1594053#M508417</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-20T10:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions - Assigning Background Color by Value</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions-Assigning-Background-Color-by-Value/m-p/1594146#M508418</link>
      <description>&lt;P&gt;Thank you this worked! That makes so much sense, and&amp;nbsp;I'm not sure why I was trying to use Sum now that I think about it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I'm trying to mark your comment as the solution, but&amp;nbsp;it just goes to an error page. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 13:40:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions-Assigning-Background-Color-by-Value/m-p/1594146#M508418</guid>
      <dc:creator>SClem</dc:creator>
      <dc:date>2019-06-20T13:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions - Assigning Background Color by Value</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions-Assigning-Background-Color-by-Value/m-p/1594153#M508419</link>
      <description>&lt;P&gt;It is a known issue and community administrators are working on it. Look&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Sense-App-Development/Issue-using-Total-Qualifier-and-Dimension-Limit-in-Stacked-Bar/m-p/1593825#M43671" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;for Jeremy's response.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 13:53:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions-Assigning-Background-Color-by-Value/m-p/1594153#M508419</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-20T13:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions - Assigning Background Color by Value</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions-Assigning-Background-Color-by-Value/m-p/1594156#M508420</link>
      <description>&lt;P&gt;Seems like it just worked for you now&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 13:57:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions-Assigning-Background-Color-by-Value/m-p/1594156#M508420</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-20T13:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions - Assigning Background Color by Value</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions-Assigning-Background-Color-by-Value/m-p/1594158#M508421</link>
      <description>For some reason it worked to click the "Accept as Solution" link from the email notification, but not on the website.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Jun 2019 13:59:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions-Assigning-Background-Color-by-Value/m-p/1594158#M508421</guid>
      <dc:creator>SClem</dc:creator>
      <dc:date>2019-06-20T13:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions - Assigning Background Color by Value</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions-Assigning-Background-Color-by-Value/m-p/1594163#M508422</link>
      <description>&lt;P&gt;Strange, but glad it worked.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 14:04:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions-Assigning-Background-Color-by-Value/m-p/1594163#M508422</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-20T14:04:11Z</dc:date>
    </item>
  </channel>
</rss>

