<?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 simple if statement question from a beginner in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/simple-if-statement-question-from-a-beginner/m-p/253744#M1206154</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why have ELSE and end if&lt;/P&gt;&lt;P&gt;IF((Sum(Margin) / Sum(Sales)) &amp;lt;= 0.2,red(),green())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Apr 2010 15:27:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-04-26T15:27:40Z</dc:date>
    <item>
      <title>simple if statement question from a beginner</title>
      <link>https://community.qlik.com/t5/QlikView/simple-if-statement-question-from-a-beginner/m-p/253743#M1206153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to display values in a single column of a straight table in two different colors. The column is "Margin %" and I would like to display it in red if it is under 20% and green if it is over 20%.&lt;/P&gt;&lt;P&gt;Unfortunately, I can't even get a simple if statement to work. It may be my syntax, as I've never done it before. Under the definition for "Text Color" in my Margin % expression, I have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(Sum(Margin) / Sum(Sales) &amp;lt;= 0.2) // that margin / sales is how i calculated the margin percent...&lt;/P&gt;&lt;P&gt;red();&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;green();&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I can't even get a simple if statement to work. But that's what I need to do.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Apr 2010 15:11:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/simple-if-statement-question-from-a-beginner/m-p/253743#M1206153</guid>
      <dc:creator />
      <dc:date>2010-04-26T15:11:09Z</dc:date>
    </item>
    <item>
      <title>simple if statement question from a beginner</title>
      <link>https://community.qlik.com/t5/QlikView/simple-if-statement-question-from-a-beginner/m-p/253744#M1206154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why have ELSE and end if&lt;/P&gt;&lt;P&gt;IF((Sum(Margin) / Sum(Sales)) &amp;lt;= 0.2,red(),green())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Apr 2010 15:27:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/simple-if-statement-question-from-a-beginner/m-p/253744#M1206154</guid>
      <dc:creator />
      <dc:date>2010-04-26T15:27:40Z</dc:date>
    </item>
  </channel>
</rss>

