<?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 Colour Coding Using a Data island - Not Able to use AND/OR ?? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Colour-Coding-Using-a-Data-island-Not-Able-to-use-AND-OR/m-p/237816#M88803</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BC&lt;/P&gt;&lt;P&gt;What is the value of vWarningValueVariable?&lt;/P&gt;&lt;P&gt;You said a "range of numbers", but this expression will only work if it contains a a single number. Perhaps I did not undertsand you correctly.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jul 2010 16:34:58 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2010-07-29T16:34:58Z</dc:date>
    <item>
      <title>Colour Coding Using a Data island - Not Able to use AND/OR ??</title>
      <link>https://community.qlik.com/t5/QlikView/Colour-Coding-Using-a-Data-island-Not-Able-to-use-AND-OR/m-p/237815#M88802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I have created a data island so people can change the colour code of a cell based on the value of 2 variables which I have created using two inline tables i.e. Data Island model.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;$(vRAGPercentage) gives a numerical value from an aggregate caculation&lt;/LI&gt;&lt;LI&gt;$(vWarningValueVariable) is a range of numbers as is $(vCriticalValueVariable)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Therefore, in my colour code I want to write:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;if( $(vRAGPercentage) &amp;lt; $(vWarningValueVariable) AND&lt;BR /&gt; $(vRAGPercentage) &amp;gt; $(vCriticalValueVariable), rgb(255,128,0),&lt;BR /&gt;rgb(105,208,56))&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The problem is that it gives the error 'BAD FIELD NAME 'AND' '. In many other colour expressions I have been able to use AND so I am a bit stumped as to why it will now not work.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Thanks alot&lt;/P&gt;&lt;P&gt;BC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 16:03:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Colour-Coding-Using-a-Data-island-Not-Able-to-use-AND-OR/m-p/237815#M88802</guid>
      <dc:creator />
      <dc:date>2010-07-29T16:03:12Z</dc:date>
    </item>
    <item>
      <title>Colour Coding Using a Data island - Not Able to use AND/OR ??</title>
      <link>https://community.qlik.com/t5/QlikView/Colour-Coding-Using-a-Data-island-Not-Able-to-use-AND-OR/m-p/237816#M88803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BC&lt;/P&gt;&lt;P&gt;What is the value of vWarningValueVariable?&lt;/P&gt;&lt;P&gt;You said a "range of numbers", but this expression will only work if it contains a a single number. Perhaps I did not undertsand you correctly.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 16:34:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Colour-Coding-Using-a-Data-island-Not-Able-to-use-AND-OR/m-p/237816#M88803</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-07-29T16:34:58Z</dc:date>
    </item>
    <item>
      <title>Colour Coding Using a Data island - Not Able to use AND/OR ??</title>
      <link>https://community.qlik.com/t5/QlikView/Colour-Coding-Using-a-Data-island-Not-Able-to-use-AND-OR/m-p/237817#M88804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;I created 2 Inline tables with values 10,20,30,40,50,60,70,80,90 named WarningValue and CriticalValue. I then created a variable for each. The variable for each, (vWarningValueVariable and vCriticalValueVariable) just had were WarningValue and CriticalValuerespectively. I then created a slider object for both using both fields so the user could choose their desired single value for both.&lt;/P&gt;&lt;P&gt;So, for example, if the user chose the WarningValue to be 80 and the CriticalValue to be 70 and the RAGPercentage was 75, the cell should turn Amber - rgb(255,128,0).&lt;/P&gt;&lt;P&gt;The problem is that if I replace my vWarningValueVariable and vCriticalValueVariable with hardcoded numbers it lets me use the AND function, but when I switch this to a variable it doesn't seem to work.&lt;/P&gt;&lt;P&gt;This make it any clearer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 16:54:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Colour-Coding-Using-a-Data-island-Not-Able-to-use-AND-OR/m-p/237817#M88804</guid>
      <dc:creator />
      <dc:date>2010-07-29T16:54:01Z</dc:date>
    </item>
    <item>
      <title>Colour Coding Using a Data island - Not Able to use AND/OR ??</title>
      <link>https://community.qlik.com/t5/QlikView/Colour-Coding-Using-a-Data-island-Not-Able-to-use-AND-OR/m-p/237818#M88805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried using the variables directly, rather than via a $ expansion:&lt;/P&gt;&lt;PRE style="margin:0px;"&gt;if(vRAGPercentage &amp;lt; vWarningValueVariable AND vRAGPercentage &amp;gt; vCriticalValueVariable, rgb(255,128,0), rgb(105,208,56))&lt;BR /&gt;&lt;BR /&gt;Jonathan&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 19:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Colour-Coding-Using-a-Data-island-Not-Able-to-use-AND-OR/m-p/237818#M88805</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-07-29T19:03:42Z</dc:date>
    </item>
  </channel>
</rss>

