<?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: Expression Background Color for Straight Tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65403#M773129</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="qlikquestion.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/201849_qlikquestion.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt; -1925.7 is expression total. 83.9% is avg of rows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 May 2018 14:21:19 GMT</pubDate>
    <dc:creator>cazztfplease</dc:creator>
    <dc:date>2018-05-08T14:21:19Z</dc:date>
    <item>
      <title>Expression Background Color for Straight Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65395#M773121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm fairly sure I am going about this in the hardest way possible, but my logic has me running into walls over and over.&amp;nbsp; I've found a few threads that have helped me get to where I am currently, but can't seem to get past this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a straight table that I would like to have up 5 different colors to highlight the background based on various tiers of values.&amp;nbsp; In the example shown,&amp;nbsp; I have used an if\else statement to give me two highlights, green and red.&amp;nbsp; I I know I can use the Visual Cues tab to highlight up to three different ranges.&amp;nbsp; Ideas on how I can use the expression editor (or other route)&amp;nbsp; to allow me to highlight 5 ranges of values in different colors? I thought I could structure the statements to allow for (LongEquationValue &amp;gt; 'x' and LongEquationValue &amp;lt;'y') to identify a range for each highlight color, but I may be doing something wrong (clearly) as it doesn't recognize the expression as 'OK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For context, each day of the month is a column where the sum of TotalFaults is calculated.&amp;nbsp; You'll notice a set analysis statement indicating Day ={'1'} for the first of the month, {'2'} for the second, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any assistance!&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qlikquestion.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/201741_qlikquestion.JPG" style="height: 187px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qlikquestion2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/201742_qlikquestion2.JPG" style="height: 103px; width: 620px;" /&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/Expression-Background-Color-for-Straight-Tables/m-p/65395#M773121</guid>
      <dc:creator>cazztfplease</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Background Color for Straight Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65396#M773122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All you need to do is nest your if statements with all the conditions in the one statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg&lt;/P&gt;&lt;P&gt;if(expression &amp;gt;=0 and CYTD&amp;lt;1000, red(), &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(expression &amp;gt;=1000 and CYTD &amp;lt;10000, lightred(),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(expression &amp;gt;=10000 and CYTD &amp;lt;20000, yellow(), &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(expression &amp;gt;=20000 and CYTD &amp;lt;50000, blue(),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Green()))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 23:43:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65396#M773122</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2018-05-07T23:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Background Color for Straight Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65397#M773123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lisa, I tried the nested ifs but had a typo.&amp;nbsp; Looking at your script I saw my error. Thank you for your response! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 05:40:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65397#M773123</guid>
      <dc:creator>cazztfplease</dc:creator>
      <dc:date>2018-05-08T05:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Background Color for Straight Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65398#M773124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wanna help with this one?&amp;nbsp; I have the color set to red if the value in the cell is less than 61.5%.&amp;nbsp; At the top I have an avg % of the values in the column.&amp;nbsp; Any idea why it is red?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qlikquestion.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/201769_qlikquestion.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 05:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65398#M773124</guid>
      <dc:creator>cazztfplease</dc:creator>
      <dc:date>2018-05-08T05:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Background Color for Straight Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65399#M773125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I can't see the logic here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 05:55:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65399#M773125</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2018-05-08T05:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Background Color for Straight Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65400#M773126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌? Can you lend me some insight as to why the avg% at the top of the column would be red?&amp;nbsp; here is the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/201839_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 12:41:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65400#M773126</guid>
      <dc:creator>cazztfplease</dc:creator>
      <dc:date>2018-05-08T12:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Background Color for Straight Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65401#M773127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you add another expression in this same chart&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;num((('14.825') - (sum({$&amp;lt;Day = {'1'}&amp;gt;}TotalFaults)))/('14.825'), '##.#')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure to have total mode set to 'Expression Total'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paste back a screenshot with this information&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 12:48:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65401#M773127</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-08T12:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Background Color for Straight Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65402#M773128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share the app perhaps?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 13:06:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65402#M773128</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-08T13:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Background Color for Straight Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65403#M773129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="qlikquestion.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/201849_qlikquestion.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt; -1925.7 is expression total. 83.9% is avg of rows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 14:21:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65403#M773129</guid>
      <dc:creator>cazztfplease</dc:creator>
      <dc:date>2018-05-08T14:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Background Color for Straight Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65404#M773130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, I guess you need to change your expression in the if statement to this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Avg(Aggr(&lt;/STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(('14.825') - (sum({$&amp;lt;Day = {'1'}&amp;gt;}TotalFaults)))/('14.825'), Month))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then try it out...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, remove num() functions from your if statement as they are not really doing anything within the if statement... (I try to avoid things which don't have any purpose)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 14:25:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65404#M773130</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-08T14:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Background Color for Straight Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65405#M773131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny! Yeah, the num stuff just never got cleaned up from when I was attempting to structure it in the cell a certain way, but I tend to agree with that sentiment. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 14:37:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65405#M773131</guid>
      <dc:creator>cazztfplease</dc:creator>
      <dc:date>2018-05-08T14:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Background Color for Straight Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65406#M773132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, did adding Avg(Aggr()) resolved the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 14:39:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65406#M773132</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-08T14:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Background Color for Straight Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65407#M773133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I copy/pasted your expression and realized you had 14.825, not 14,825, which was giving me weird numbers I was trying to figure out. (Your expression is the expression I used in in column '1'.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now that I see why the numbers were off, I fixed the expression so the numbers look right.&amp;nbsp; I applied the avg(aggr()) function to column '1', but it did not appear to effect the colors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the cleaned up expression for column '1' with the background color nested if statement applied(below that):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qlikquestion2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/201857_qlikquestion2.JPG" style="width: 620px; height: 92px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qlikquestion3.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/201858_qlikquestion3.JPG" style="width: 620px; height: 57px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qlikquestion.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/201850_qlikquestion.JPG" style="height: auto;" /&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 14:56:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65407#M773133</guid>
      <dc:creator>cazztfplease</dc:creator>
      <dc:date>2018-05-08T14:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Background Color for Straight Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65408#M773134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You did not apply the new expression for the color expression?&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/201859_Capture.PNG" style="height: 53px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to apply the Avg(Aggr()) in the above expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anywhere you see this&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(('14,825') - (sum({$&amp;lt;Day = {'1'}&amp;gt;}TotalFaults)))/('14,825')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace it with &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Avg(Aggr(&lt;/STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(('14,825') - (sum({$&amp;lt;Day = {'1'}&amp;gt;}TotalFaults)))/('14,825'), Month))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 15:02:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65408#M773134</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-08T15:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Background Color for Straight Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65409#M773135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That worked! Can you explain WHY?!?!?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 15:31:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65409#M773135</guid>
      <dc:creator>cazztfplease</dc:creator>
      <dc:date>2018-05-08T15:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Background Color for Straight Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65410#M773136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Avg(Aggr()) fixed the total value from -1925.7 to 0.83944... this fixed the comparison and hence the color&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 15:32:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Background-Color-for-Straight-Tables/m-p/65410#M773136</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-08T15:32:26Z</dc:date>
    </item>
  </channel>
</rss>

