<?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 set analysis query, with if statements.  help needed! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-query-with-if-statements-help-needed/m-p/148516#M26798</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;I have a background colour expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;if( RAGRating = 'Red',rgb(255,0,0),&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(RAGRating ='Amber',rgb(255,128,0),&lt;/P&gt;&lt;P&gt;rgb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(51,204,102)&lt;/P&gt;&lt;P&gt;I would like to put a set analysis variable in it but am facing problems. my variabvle is $(vTask) which includes the set analysis. Can anyone think of a way in which I can implement this? I tried&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;=if( $(vTask) RAGRating = 'Red',rgb(255,0,0),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;($(vTask) RAGRating ='Amber',rgb(255,128,0),&lt;/P&gt;&lt;P&gt;rgb(51,204,102)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;bc&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jul 2009 15:31:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-07-06T15:31:09Z</dc:date>
    <item>
      <title>set analysis query, with if statements.  help needed!</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-query-with-if-statements-help-needed/m-p/148516#M26798</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;I have a background colour expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;if( RAGRating = 'Red',rgb(255,0,0),&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(RAGRating ='Amber',rgb(255,128,0),&lt;/P&gt;&lt;P&gt;rgb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(51,204,102)&lt;/P&gt;&lt;P&gt;I would like to put a set analysis variable in it but am facing problems. my variabvle is $(vTask) which includes the set analysis. Can anyone think of a way in which I can implement this? I tried&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;=if( $(vTask) RAGRating = 'Red',rgb(255,0,0),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;($(vTask) RAGRating ='Amber',rgb(255,128,0),&lt;/P&gt;&lt;P&gt;rgb(51,204,102)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;bc&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2009 15:31:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-query-with-if-statements-help-needed/m-p/148516#M26798</guid>
      <dc:creator />
      <dc:date>2009-07-06T15:31:09Z</dc:date>
    </item>
    <item>
      <title>set analysis query, with if statements.  help needed!</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-query-with-if-statements-help-needed/m-p/148517#M26799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Sets need to have a function to reside in (like Sum, Avg, Count, Min, Max, etc.) whereas you have a static IF statement with static values.&lt;/P&gt;&lt;P&gt;If the RAGRating value is a field, I might look at something like:&lt;/P&gt;&lt;P&gt;=if( MaxString ($(vTask) RAGRating) = 'Red',rgb(255,0,0), ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2009 16:45:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-query-with-if-statements-help-needed/m-p/148517#M26799</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2009-07-06T16:45:10Z</dc:date>
    </item>
  </channel>
</rss>

