<?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 Compare values in cells in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194414#M55328</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure what should I do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its like compare value with above and change background to green if more than above else red&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Nov 2010 21:54:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-11-18T21:54:42Z</dc:date>
    <item>
      <title>Compare values in cells</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194407#M55321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai all&lt;BR /&gt;&lt;BR /&gt;I am new to Qlikview. I am working on a table. I populated it with right data, calculated expressions etc.&lt;BR /&gt;&lt;BR /&gt;Can someone suggest me how to do this?&lt;BR /&gt;&lt;BR /&gt;I have a 3 sort fields - Region, country , year and year has 2009 and 2010. so there will be 2 records. I want to make value for 2010 Green if it is more than value for 2009 for that region and country else if it is less I need to make it Red. either change the font color or fill the cell with those colors. And later I need to count the number of greens and reds. How can this be done?&lt;BR /&gt;&lt;BR /&gt;Please let me know of any questions.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks a lot..&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 19:42:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194407#M55321</guid>
      <dc:creator />
      <dc:date>2010-11-18T19:42:50Z</dc:date>
    </item>
    <item>
      <title>Compare values in cells</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194408#M55322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;You can expand the options on each dimension or expression and set the background or text colour. This can be done by simply assigning a colour (eg. red()) or by entering an expression (eg. if (amount &amp;gt; 10,red(),green()).&lt;/P&gt;&lt;P&gt;Let me know if this helps.&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 20:45:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194408#M55322</guid>
      <dc:creator>john_duffy</dc:creator>
      <dc:date>2010-11-18T20:45:11Z</dc:date>
    </item>
    <item>
      <title>Compare values in cells</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194409#M55323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply. Its not based on condition. Its based on value of prior record value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 21:28:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194409#M55323</guid>
      <dc:creator />
      <dc:date>2010-11-18T21:28:53Z</dc:date>
    </item>
    <item>
      <title>Compare values in cells</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194410#M55324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess I need to use Last function but I am not sure how to use it on a field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 21:30:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194410#M55324</guid>
      <dc:creator />
      <dc:date>2010-11-18T21:30:55Z</dc:date>
    </item>
    <item>
      <title>Compare values in cells</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194411#M55325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about using the above function? Something like if (above(sum(fieldA)) &amp;gt; sum(fieldA),green(),red()).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 21:41:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194411#M55325</guid>
      <dc:creator>john_duffy</dc:creator>
      <dc:date>2010-11-18T21:41:00Z</dc:date>
    </item>
    <item>
      <title>Compare values in cells</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194412#M55326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Above may work but its giving error..syntax issue may be&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 21:49:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194412#M55326</guid>
      <dc:creator />
      <dc:date>2010-11-18T21:49:12Z</dc:date>
    </item>
    <item>
      <title>Compare values in cells</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194413#M55327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;maybe with the first line, above() is null, you need to change this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 21:51:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194413#M55327</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2010-11-18T21:51:37Z</dc:date>
    </item>
    <item>
      <title>Compare values in cells</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194414#M55328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure what should I do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its like compare value with above and change background to green if more than above else red&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 21:54:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194414#M55328</guid>
      <dc:creator />
      <dc:date>2010-11-18T21:54:42Z</dc:date>
    </item>
    <item>
      <title>Compare values in cells</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194415#M55329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;something like this?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" src="http://img844.imageshack.us/img844/1430/image000ju.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 22:03:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194415#M55329</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2010-11-18T22:03:09Z</dc:date>
    </item>
    <item>
      <title>Compare values in cells</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194416#M55330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wow hector..it looks like i need this..can you please send that expression,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 22:07:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194416#M55330</guid>
      <dc:creator />
      <dc:date>2010-11-18T22:07:45Z</dc:date>
    </item>
    <item>
      <title>Compare values in cells</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194417#M55331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;the expression is in the image, but anyway here it is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;if(above(Sum(F2))&amp;gt;Sum(F2),lightred(),lightgreen())&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 22:12:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194417#M55331</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2010-11-18T22:12:38Z</dc:date>
    </item>
    <item>
      <title>Compare values in cells</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194418#M55332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its working good. Is there anyway, could I count number of greens and reds?&lt;/P&gt;&lt;P&gt;Blank fields are also turning green..? Can I leave them white normally?&lt;/P&gt;&lt;P&gt;And also, base value (1st value for each dimension) should be white when the dimension changes..but its turning green..!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 22:25:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194418#M55332</guid>
      <dc:creator />
      <dc:date>2010-11-18T22:25:55Z</dc:date>
    </item>
    <item>
      <title>Compare values in cells</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194419#M55333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone reply to this?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 15:41:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194419#M55333</guid>
      <dc:creator />
      <dc:date>2010-11-19T15:41:05Z</dc:date>
    </item>
    <item>
      <title>Compare values in cells</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194420#M55334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;Can you attach a sample application using an inline load. This way I can work on it at my end. Add a description of what you are trying to achieve.&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 17:52:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194420#M55334</guid>
      <dc:creator>john_duffy</dc:creator>
      <dc:date>2010-11-19T17:52:32Z</dc:date>
    </item>
    <item>
      <title>Compare values in cells</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194421#M55335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you have seen the image attached by Hector. I have similar thing done but I need to count number of greens and reds.&lt;/P&gt;&lt;P&gt;If you see below, cost% and head% are based on dimensions plant and year. For each plant and year 2008, background should be white(i mean should not change) and other 2 values for 2009 and 2010 should be red or green based on condition I gave (which is working as of now). and also, can I count the number of red and greens for each column? for ex right now both cost% and head% have 1 red and 5 greens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any questions&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/8203.untitled.bmp"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/8203.untitled.bmp" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 19:07:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194421#M55335</guid>
      <dc:creator />
      <dc:date>2010-11-19T19:07:23Z</dc:date>
    </item>
    <item>
      <title>Compare values in cells</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194422#M55336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, for the colors issue use rowno()&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" src="http://img715.imageshack.us/img715/2908/image000cg.png" /&gt;&lt;/P&gt;&lt;P&gt;For the "count of green / red", you need to specify how you want to count them, and in what type of object (table, text box etc), post an example plz&lt;/P&gt;&lt;P&gt;PS. By the way, sometimes the image is too big, so you need to open it in a new window &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 19:25:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194422#M55336</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2010-11-19T19:25:46Z</dc:date>
    </item>
    <item>
      <title>Compare values in cells</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194423#M55337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. Say for example 2008 has no data, then 2009 should be white and if 2009 also no data then 2010 should be white. should I check for null? what function should I use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And how come I learn about these functions? Can you please guide me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 20:02:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194423#M55337</guid>
      <dc:creator />
      <dc:date>2010-11-19T20:02:54Z</dc:date>
    </item>
    <item>
      <title>Compare values in cells</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194424#M55338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hector or john, can you please reply for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Nov 2010 16:40:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194424#M55338</guid>
      <dc:creator />
      <dc:date>2010-11-22T16:40:47Z</dc:date>
    </item>
    <item>
      <title>Compare values in cells</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194425#M55339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;We need you to attach an actual QlikView application so that we can solve the issue at our end. Attach a small application with data created using an inline load in the same format as your actual production application. Keep the record count small ( 5 to 10 rows).&lt;/P&gt;&lt;P&gt;In the applicaiton create the object you are trying to get working (straight table, pivot table, etc.) and create a text box to explain what is working correctly and what you still need.&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Nov 2010 17:38:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194425#M55339</guid>
      <dc:creator>john_duffy</dc:creator>
      <dc:date>2010-11-22T17:38:42Z</dc:date>
    </item>
    <item>
      <title>Compare values in cells</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194426#M55340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey john/hector,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the sample inline load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Reg, Plname, Year,2G%, 3G%&lt;BR /&gt;AB, Plt1,2008,12.3,14.5&lt;BR /&gt;AB, Plt1,2009,12.6,14.3&lt;BR /&gt;AB, Plt1,2010,12.4,14.9&lt;BR /&gt;AB, Plt2,2008,23.3,32.5&lt;BR /&gt;AB, Plt2,2009,22.9,34.5&lt;BR /&gt;AB, Plt2,2010,22.5,54.5&lt;BR /&gt;BC, Plt3,2008,13.3,14.5&lt;BR /&gt;BC, Plt3,2009,17.6,14.3&lt;BR /&gt;BC, Plt3,2010,19.4,14.9&lt;BR /&gt;BC, Plt4,2008,73.3,12.5&lt;BR /&gt;BC, Plt4,2009,42.9,43.5&lt;BR /&gt;BC, Plt4,2010,45.5,45.5&lt;BR /&gt;CD, Plt5,2008,62.3,24.5&lt;BR /&gt;CD, Plt5,2009,15.6,64.3&lt;BR /&gt;CD, Plt5,2010,62.4,34.9&lt;BR /&gt;CD, Plt6,2008,33.3,52.5&lt;BR /&gt;CD, Plt6,2009,12.9,74.5&lt;BR /&gt;CD, Plt6,2010,32.5,54.5&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;I have expressions for background colors for last 2 which are expressions fields. Now I want to count the number of reds and greens based on each region/plant/year.Based on that I have some expressions to calculate some values and show them for each region for that year. Please let me know how to count them, may be store in a variable and use in another graph or table.&lt;/P&gt;&lt;P&gt;And also, say for example a value for 2008 is null then next value for 2009 is turning green. How can I have it white till it has a prior value for comparision? Right now Im using this for b/g color.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(rowno()=1,null(),if(above([2G%])&amp;lt;[2G%],lightred(),lightgreen()))&lt;/P&gt;&lt;P&gt;Please let me know if you have any questions. &lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x500/__key/CommunityServer.Discussions.Components.Files/11/8203.bmp.bmp" /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 16:28:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-in-cells/m-p/194426#M55340</guid>
      <dc:creator />
      <dc:date>2010-11-30T16:28:54Z</dc:date>
    </item>
  </channel>
</rss>

