<?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 in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-in-expression/m-p/455127#M1153772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following expression.&amp;nbsp; See below.&amp;nbsp; But I only want that expression to work when the SalesAmount is &amp;gt; 0, How can I write this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(Sum({&amp;lt;YearlyTotal = {[Year 3]}&amp;gt;}SalesAmount)/156)/count(DISTINCT ItemNumber)&lt;BR /&gt;&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Mar 2013 13:19:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-03-19T13:19:45Z</dc:date>
    <item>
      <title>If in expression</title>
      <link>https://community.qlik.com/t5/QlikView/If-in-expression/m-p/455127#M1153772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following expression.&amp;nbsp; See below.&amp;nbsp; But I only want that expression to work when the SalesAmount is &amp;gt; 0, How can I write this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(Sum({&amp;lt;YearlyTotal = {[Year 3]}&amp;gt;}SalesAmount)/156)/count(DISTINCT ItemNumber)&lt;BR /&gt;&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 13:19:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-in-expression/m-p/455127#M1153772</guid>
      <dc:creator />
      <dc:date>2013-03-19T13:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: If in expression</title>
      <link>https://community.qlik.com/t5/QlikView/If-in-expression/m-p/455128#M1153773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;(Sum({&amp;lt;SalesMount={'&amp;gt;0'},YearlyTotal = {[Year 3]}&amp;gt;}SalesAmount)/156)/count(DISTINCT ItemNumber)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 13:32:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-in-expression/m-p/455128#M1153773</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-03-19T13:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: If in expression</title>
      <link>https://community.qlik.com/t5/QlikView/If-in-expression/m-p/455129#M1153774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Gysbert, imho you need "&amp;nbsp; instead of ' around the &amp;gt;0 (it's a search string):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;(Sum({&amp;lt;SalesMount={"&amp;gt;0"},YearlyTotal = {[Year 3]}&amp;gt;}SalesAmount)/156)/count(DISTINCT ItemNumber)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2013 08:22:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-in-expression/m-p/455129#M1153774</guid>
      <dc:creator />
      <dc:date>2013-03-20T08:22:57Z</dc:date>
    </item>
  </channel>
</rss>

