<?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: Coloring table cell with IF statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Coloring-table-cell-with-IF-statement/m-p/984566#M958763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have, that did not work, it's saying that ▼ is not a valid function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2015 16:05:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-29T16:05:32Z</dc:date>
    <item>
      <title>Coloring table cell with IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-table-cell-with-IF-statement/m-p/984557#M958749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a similar table in Qlik Sense:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="103386" alt="Clipboard01.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/103386_Clipboard01.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a column for:&lt;/P&gt;&lt;P&gt;Physician&lt;/P&gt;&lt;P&gt;AVG RVU (productivity number)&lt;/P&gt;&lt;P&gt;Varience&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to do is color the cell red or&amp;nbsp; green depending on the variance being a positive or negative change. Coloring the entire cell or just the arrow will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression for the varience is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg(total total_rvu)-avg(total_rvu)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 19:13:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-table-cell-with-IF-statement/m-p/984557#M958749</guid>
      <dc:creator />
      <dc:date>2015-10-28T19:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring table cell with IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-table-cell-with-IF-statement/m-p/984558#M958750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct me if i'm wrong. You are trying to do this in Qlikview? if so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If its a straight table u use visual que's &amp;amp; use the color expression there, also u can try by giving color expression in the dimension or KPI pivot's. like in the image below.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/103393_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Brad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 19:32:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-table-cell-with-IF-statement/m-p/984558#M958750</guid>
      <dc:creator />
      <dc:date>2015-10-28T19:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring table cell with IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-table-cell-with-IF-statement/m-p/984559#M958751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using Qlik Sense&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 19:36:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-table-cell-with-IF-statement/m-p/984559#M958751</guid>
      <dc:creator />
      <dc:date>2015-10-28T19:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring table cell with IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-table-cell-with-IF-statement/m-p/984560#M958752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you trying to do this in Qlik Sense?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so,you can use a straight table -&amp;gt; data -&amp;gt; background color, you can put the expression&lt;/P&gt;&lt;P&gt;if(varience&amp;gt;0, green(),red())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 19:43:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-table-cell-with-IF-statement/m-p/984560#M958752</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-28T19:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring table cell with IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-table-cell-with-IF-statement/m-p/984561#M958753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried this:&lt;/P&gt;&lt;P&gt;if(avg(total total_rvu)-avg(total_rvu))&amp;gt;0,green(),red())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I didn't get the desired results&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 19:50:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-table-cell-with-IF-statement/m-p/984561#M958753</guid>
      <dc:creator />
      <dc:date>2015-10-28T19:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring table cell with IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-table-cell-with-IF-statement/m-p/984562#M958755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your formula is nearly there, but think it is a bracket issue, please try;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if((avg(total total_rvu)-avg(total_rvu))&amp;gt;0,Green(),Red())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jason.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 11:07:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-table-cell-with-IF-statement/m-p/984562#M958755</guid>
      <dc:creator />
      <dc:date>2015-10-29T11:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring table cell with IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-table-cell-with-IF-statement/m-p/984563#M958758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nathan,&lt;/P&gt;&lt;P&gt;It looks like you may have a misplaced parenthesis that is terminating the if statement prematurely.&amp;nbsp; Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(avg(total total_rvu)-avg(total_rvu)&amp;gt;0,green(),red())&lt;/P&gt;&lt;P&gt;or this:&lt;/P&gt;&lt;P&gt;if((avg(total total_rvu)-avg(total_rvu))&amp;gt;0,green(),red())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-cb&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 12:18:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-table-cell-with-IF-statement/m-p/984563#M958758</guid>
      <dc:creator>chancekbarkley</dc:creator>
      <dc:date>2015-10-29T12:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring table cell with IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-table-cell-with-IF-statement/m-p/984564#M958760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have it working, sort of.&amp;nbsp; I used if(((avg(total total_rvu)-avg(total_rvu)))&amp;gt;0,green(),red()) in the background color expression and in the normal expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to display ▼/ ▲ instead of the RGB(128,0,0) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="rvu_screen.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/103481_rvu_screen.jpg" style="height: 264px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 14:24:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-table-cell-with-IF-statement/m-p/984564#M958760</guid>
      <dc:creator />
      <dc:date>2015-10-29T14:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring table cell with IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-table-cell-with-IF-statement/m-p/984565#M958762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried using the same formula and replacing Green with '▲' and red with '▼' for the expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 15:37:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-table-cell-with-IF-statement/m-p/984565#M958762</guid>
      <dc:creator>chancekbarkley</dc:creator>
      <dc:date>2015-10-29T15:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring table cell with IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-table-cell-with-IF-statement/m-p/984566#M958763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have, that did not work, it's saying that ▼ is not a valid function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 16:05:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-table-cell-with-IF-statement/m-p/984566#M958763</guid>
      <dc:creator />
      <dc:date>2015-10-29T16:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring table cell with IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-table-cell-with-IF-statement/m-p/984567#M958764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nathan, i just tried it and this worked for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this in your Expression:&lt;/P&gt;&lt;P&gt;if((avg(total total_rvu)-avg(total_rvu))&amp;gt;0,'▲','▼')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this for your background color:&lt;/P&gt;&lt;P&gt;if((avg(total total_rvu)-avg(total_rvu))&amp;gt;0,Green(),Red())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 16:31:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-table-cell-with-IF-statement/m-p/984567#M958764</guid>
      <dc:creator>chancekbarkley</dc:creator>
      <dc:date>2015-10-29T16:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring table cell with IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-table-cell-with-IF-statement/m-p/984568#M958765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried for the main expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if((avg(total total_rvu)-avg(total_rvu))&amp;gt;0,'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_n.png','qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_s.png')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you must select (from Expressions tab) Display options Image (see picture)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Arrows.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/103500_Arrows.png" style="width: 620px; height: 236px;" /&gt;&lt;/P&gt;&lt;P&gt;And keep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if((avg(total total_rvu)-avg(total_rvu))&amp;gt;0,Green(),Red())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the colour format? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fingers crossed, we'll all get there!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jason.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 16:37:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-table-cell-with-IF-statement/m-p/984568#M958765</guid>
      <dc:creator />
      <dc:date>2015-10-29T16:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring table cell with IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-table-cell-with-IF-statement/m-p/984569#M958766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, this did work!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 17:17:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-table-cell-with-IF-statement/m-p/984569#M958766</guid>
      <dc:creator />
      <dc:date>2015-10-29T17:17:05Z</dc:date>
    </item>
  </channel>
</rss>

