<?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 Sum and IF in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-and-IF/m-p/417249#M1150598</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the following as an expression and it is working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TERM_CODE_EFF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'2012-13'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;REG_STATUS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'RE','RP','RS','WU'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;StudyYearCommencementDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'&amp;gt;01/09/2012''&amp;lt;01/08/2013'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[No Attendance]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'X'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Today()&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;StudyYearCommencementDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/17&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I want to add an IF to the sum statement and have tried a number of different methods but&amp;nbsp; I am not getting nowhere so any help is appreciated. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;My IF statement on its own&amp;nbsp; is as follows;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If &lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LEVEL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='PGR',&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Today()&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;StudyYearCommencementDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;/41),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Today()&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;StudyYearCommencementDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;/17))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 May 2013 14:18:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-01T14:18:07Z</dc:date>
    <item>
      <title>Sum and IF</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-and-IF/m-p/417249#M1150598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the following as an expression and it is working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TERM_CODE_EFF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'2012-13'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;REG_STATUS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'RE','RP','RS','WU'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;StudyYearCommencementDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'&amp;gt;01/09/2012''&amp;lt;01/08/2013'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[No Attendance]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'X'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Today()&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;StudyYearCommencementDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/17&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I want to add an IF to the sum statement and have tried a number of different methods but&amp;nbsp; I am not getting nowhere so any help is appreciated. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;My IF statement on its own&amp;nbsp; is as follows;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If &lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LEVEL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='PGR',&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Today()&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;StudyYearCommencementDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;/41),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Today()&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;StudyYearCommencementDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;/17))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 14:18:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-and-IF/m-p/417249#M1150598</guid>
      <dc:creator />
      <dc:date>2013-05-01T14:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sum and IF</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-and-IF/m-p/417250#M1150599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this do what you need?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;TERM_CODE_EFF={'2012-13'},REG_STATUS={'RE','RP','RS','WU'},StudyYearCommencementDate={'&amp;gt;01/09/2012''&amp;lt;01/08/2013'},[No Attendance]={'X'}&amp;gt;}Today()-StudyYearCommencementDate)/if(LEVEL='PGR',41,17)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 14:37:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-and-IF/m-p/417250#M1150599</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-05-01T14:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sum and IF</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-and-IF/m-p/417251#M1150600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfectly thank you &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 14:43:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-and-IF/m-p/417251#M1150600</guid>
      <dc:creator />
      <dc:date>2013-05-01T14:43:10Z</dc:date>
    </item>
  </channel>
</rss>

