<?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 If statement based on no field selected in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-statement-based-on-no-field-selected/m-p/272228#M1196006</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;&lt;/P&gt;&lt;P&gt;Further to below post I have written a condition in the expression that will color background based on whether a particular report is selected and what value is in a Totals field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Report='CBINT' and [Total]&amp;lt;=600,RGB (0,255,0),if(Report='CBINT' and [Total]&amp;lt;=800,RGB (255,255,0),if(Report='PAYMENTS/I&amp;amp;I' and [Total]&amp;lt;=70,RGB (0,255,0),if(Report='PAYMENTS/I&amp;amp;I' and [Total]&amp;lt;=110,RGB (255,255,0),if(Report='IRE' and [Total]&amp;lt;=50,RGB (0,255,0),if(Report='IRE' and [Total]&amp;lt;=75,RGB (255,255,0),if(Report='ROI Bank' and [Total]&amp;lt;=250,RGB (0,255,0),if(Report='ROI Bank' and [Total]&amp;lt;=500,RGB (255,255,0),&lt;STRONG&gt;if(Report='ROI Bank' and Report='CBINT' and Report='IRE'and Report='PAYMENTS/I&amp;amp;I' and [Total]&amp;lt;=920,RGB (0,255,0),if(Report='ROI Bank' and Report='CBINT' and Report='IRE'and Report='PAYMENTS/I&amp;amp;I' and [Total]&amp;lt;=1406,RGB (255,255,0),RGB (185,0,0)))))))))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This works perfectly , but my issue is the last part in bold I wish to have a rule on the whole formula as a whole that states if when no option in [Report] is selected if its &amp;lt;920 Green &amp;lt;1406 orange otherwise red.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried different variations of this but cant get it to work !! Can anyone advise if there is a way to write in a formula when no field selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this also posted as part of another discussion ( background colour set in Expression) as it was a lead on from there but I need to know this rule so I may apply same logic in other formulas in my workbook&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jun 2011 10:40:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-06-08T10:40:55Z</dc:date>
    <item>
      <title>If statement based on no field selected</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-based-on-no-field-selected/m-p/272228#M1196006</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;&lt;/P&gt;&lt;P&gt;Further to below post I have written a condition in the expression that will color background based on whether a particular report is selected and what value is in a Totals field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Report='CBINT' and [Total]&amp;lt;=600,RGB (0,255,0),if(Report='CBINT' and [Total]&amp;lt;=800,RGB (255,255,0),if(Report='PAYMENTS/I&amp;amp;I' and [Total]&amp;lt;=70,RGB (0,255,0),if(Report='PAYMENTS/I&amp;amp;I' and [Total]&amp;lt;=110,RGB (255,255,0),if(Report='IRE' and [Total]&amp;lt;=50,RGB (0,255,0),if(Report='IRE' and [Total]&amp;lt;=75,RGB (255,255,0),if(Report='ROI Bank' and [Total]&amp;lt;=250,RGB (0,255,0),if(Report='ROI Bank' and [Total]&amp;lt;=500,RGB (255,255,0),&lt;STRONG&gt;if(Report='ROI Bank' and Report='CBINT' and Report='IRE'and Report='PAYMENTS/I&amp;amp;I' and [Total]&amp;lt;=920,RGB (0,255,0),if(Report='ROI Bank' and Report='CBINT' and Report='IRE'and Report='PAYMENTS/I&amp;amp;I' and [Total]&amp;lt;=1406,RGB (255,255,0),RGB (185,0,0)))))))))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This works perfectly , but my issue is the last part in bold I wish to have a rule on the whole formula as a whole that states if when no option in [Report] is selected if its &amp;lt;920 Green &amp;lt;1406 orange otherwise red.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried different variations of this but cant get it to work !! Can anyone advise if there is a way to write in a formula when no field selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this also posted as part of another discussion ( background colour set in Expression) as it was a lead on from there but I need to know this rule so I may apply same logic in other formulas in my workbook&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 10:40:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-based-on-no-field-selected/m-p/272228#M1196006</guid>
      <dc:creator />
      <dc:date>2011-06-08T10:40:55Z</dc:date>
    </item>
  </channel>
</rss>

