<?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: Dynamic Background Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-Background-Expression/m-p/1059082#M926390</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satish,&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;my code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Region, orderDate, Product, Amount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, 1/4/2011, Case 4, 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, 1/5/2011, Case 5, 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6, 1/4/2011, Case 4, 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7, 1/5/2011, Case 5, 40&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8, 1/2/2011, Case 5, 15&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T2:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;RAGSTATUS, FROM_VALUE, TO_VALUE&lt;/P&gt;&lt;P&gt;GREEN, 0, 5&lt;/P&gt;&lt;P&gt;AMBER, 6, 15&lt;/P&gt;&lt;P&gt;RED, 16, 100&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dim:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;orderDate&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Exp:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;sum(Amount)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;background exp:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(sum(Amount)&amp;gt;=Min(FROM_VALUE)and sum(Amount)&amp;lt;=min(TO_VALUE),rgb(154,205,50),&lt;/P&gt;&lt;P&gt;if(sum(Amount)&amp;gt;=Min(FROM_VALUE,2)and sum(Amount)&amp;lt;=min(TO_VALUE,2),rgb(255,165,0),rgb(255,0,0)))&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Img1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/120673_Img1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you just need to replace sum(Amount) with your exp &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;sum(Discount)/Sum(Amount)*100&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like:&lt;/P&gt;&lt;P&gt;if((sum(Discount)/Sum(Amount)*100)&amp;gt;=Min(FROM_VALUE)and (sum(Discount)/Sum(Amount)*100)&amp;lt;=min(TO_VALUE),rgb(154,205,50),&lt;/P&gt;&lt;P&gt;if((sum(Discount)/Sum(Amount)*100)&amp;gt;=Min(FROM_VALUE,2)and (sum(Discount)/Sum(Amount)*100)&amp;lt;=min(TO_VALUE,2),rgb(255,165,0),rgb(255,0,0)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandip Satbhai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Apr 2016 10:38:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-04-06T10:38:12Z</dc:date>
    <item>
      <title>Dynamic Background Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Background-Expression/m-p/1059081#M926389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Following Table is in my database. Requirement is to not make hardcore value in background color Expression because it may change at any time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;My Expression is &lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;sum(Discount)/Sum(Amount)*100&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;How can i make background color Expression such a way that if any values in FROM_VALUE or TO_VALUE will change then there will be no need to change in Development side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Should i make variable for column FROM_VALUE or TO_VALUE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="border: 1px solid #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;" width="328"&gt;&lt;THEAD style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat;" valign="middle"&gt;RAGSTATUS&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat;" valign="middle"&gt;FROM_VALUE&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat;" valign="middle"&gt;TO_VALUE&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;GREEN&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;0&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;AMBER&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;6&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;RED&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;16&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&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/Dynamic-Background-Expression/m-p/1059081#M926389</guid>
      <dc:creator>sspawar88</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Background Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Background-Expression/m-p/1059082#M926390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satish,&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;my code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Region, orderDate, Product, Amount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, 1/4/2011, Case 4, 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, 1/5/2011, Case 5, 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6, 1/4/2011, Case 4, 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7, 1/5/2011, Case 5, 40&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8, 1/2/2011, Case 5, 15&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T2:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;RAGSTATUS, FROM_VALUE, TO_VALUE&lt;/P&gt;&lt;P&gt;GREEN, 0, 5&lt;/P&gt;&lt;P&gt;AMBER, 6, 15&lt;/P&gt;&lt;P&gt;RED, 16, 100&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dim:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;orderDate&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Exp:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;sum(Amount)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;background exp:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(sum(Amount)&amp;gt;=Min(FROM_VALUE)and sum(Amount)&amp;lt;=min(TO_VALUE),rgb(154,205,50),&lt;/P&gt;&lt;P&gt;if(sum(Amount)&amp;gt;=Min(FROM_VALUE,2)and sum(Amount)&amp;lt;=min(TO_VALUE,2),rgb(255,165,0),rgb(255,0,0)))&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Img1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/120673_Img1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you just need to replace sum(Amount) with your exp &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;sum(Discount)/Sum(Amount)*100&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like:&lt;/P&gt;&lt;P&gt;if((sum(Discount)/Sum(Amount)*100)&amp;gt;=Min(FROM_VALUE)and (sum(Discount)/Sum(Amount)*100)&amp;lt;=min(TO_VALUE),rgb(154,205,50),&lt;/P&gt;&lt;P&gt;if((sum(Discount)/Sum(Amount)*100)&amp;gt;=Min(FROM_VALUE,2)and (sum(Discount)/Sum(Amount)*100)&amp;lt;=min(TO_VALUE,2),rgb(255,165,0),rgb(255,0,0)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandip Satbhai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 10:38:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Background-Expression/m-p/1059082#M926390</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-06T10:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Background Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Background-Expression/m-p/1059083#M926391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Open the chart properties.&lt;BR /&gt;Go to Visual Cues tab.&lt;BR /&gt;Select the required expression, define the upper and lower limit and choose the desired color.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 12:10:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Background-Expression/m-p/1059083#M926391</guid>
      <dc:creator />
      <dc:date>2016-04-06T12:10:56Z</dc:date>
    </item>
  </channel>
</rss>

