<?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 Re: sumif in scripts in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sumif-in-scripts/m-p/689234#M1064275</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;with this test data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;a:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load * inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Year,Quarter,Revenue&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2010,1,100&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2010,2,100&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2010,3,100&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2010,4,100&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2011,1,100&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2011,2,100&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2011,3,100&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2011,4,100&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can have this script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; *,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; if(Quarter=12,Revenue,0) as NewRevenue&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident a;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Year,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; sum(if(Quarter=12,Revenue,0)) as NewRevenue&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident a&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; group by Year;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Sep 2014 21:03:10 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2014-09-24T21:03:10Z</dc:date>
    <item>
      <title>sumif in scripts</title>
      <link>https://community.qlik.com/t5/QlikView/sumif-in-scripts/m-p/689232#M1064273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, can i use sumif in the scripts? I used the following in the scripts but i got an error in expression..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(if((QuarterID - 12),Revenue) as NewRevenue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 20:37:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sumif-in-scripts/m-p/689232#M1064273</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-24T20:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: sumif in scripts</title>
      <link>https://community.qlik.com/t5/QlikView/sumif-in-scripts/m-p/689233#M1064274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;something like that&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(if(QuarterID - 12 = 0,0,Revenue)) as NewRevenue&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 20:39:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sumif-in-scripts/m-p/689233#M1064274</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-24T20:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: sumif in scripts</title>
      <link>https://community.qlik.com/t5/QlikView/sumif-in-scripts/m-p/689234#M1064275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;with this test data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;a:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load * inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Year,Quarter,Revenue&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2010,1,100&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2010,2,100&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2010,3,100&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2010,4,100&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2011,1,100&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2011,2,100&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2011,3,100&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2011,4,100&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can have this script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; *,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; if(Quarter=12,Revenue,0) as NewRevenue&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident a;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Year,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; sum(if(Quarter=12,Revenue,0)) as NewRevenue&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident a&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; group by Year;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 21:03:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sumif-in-scripts/m-p/689234#M1064275</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-09-24T21:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: sumif in scripts</title>
      <link>https://community.qlik.com/t5/QlikView/sumif-in-scripts/m-p/689235#M1064276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bracket is missing in your statement&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(if((QuarterID - 12),Revenue)&lt;STRONG&gt;)&lt;/STRONG&gt; as NewRevenue&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 01:23:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sumif-in-scripts/m-p/689235#M1064276</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-09-25T01:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: sumif in scripts</title>
      <link>https://community.qlik.com/t5/QlikView/sumif-in-scripts/m-p/689236#M1064277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 17:38:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sumif-in-scripts/m-p/689236#M1064277</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-25T17:38:29Z</dc:date>
    </item>
  </channel>
</rss>

