<?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 IF with a date in LOAD Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SUM-IF-with-a-date-in-LOAD-Script/m-p/1099896#M631421</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone.&amp;nbsp; I am having trouble getting the syntax right in my load script.&amp;nbsp; Here is what I have:&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;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SO_AD_SEG_MET.w_prd_dt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='2016-04-01',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SO_AD_SEG_MET.metric_value&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;test &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;What is wrong with this syntax, please?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jul 2016 14:44:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-07-19T14:44:43Z</dc:date>
    <item>
      <title>SUM IF with a date in LOAD Script</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-IF-with-a-date-in-LOAD-Script/m-p/1099896#M631421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone.&amp;nbsp; I am having trouble getting the syntax right in my load script.&amp;nbsp; Here is what I have:&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;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SO_AD_SEG_MET.w_prd_dt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='2016-04-01',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SO_AD_SEG_MET.metric_value&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;test &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;What is wrong with this syntax, please?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 14:44:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-IF-with-a-date-in-LOAD-Script/m-p/1099896#M631421</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-19T14:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: SUM IF with a date in LOAD Script</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-IF-with-a-date-in-LOAD-Script/m-p/1099897#M631422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you writing this aggregation as an SQL statement. Did you use Group By clause in the end ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;*;&lt;/P&gt;&lt;P&gt;SQL SELECT &lt;/P&gt;&lt;P&gt;col1,&lt;/P&gt;&lt;P&gt;col2,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;SO_AD_SEG_MET.w_prd_dt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;='2016-04-01',&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;SO_AD_SEG_MET.metric_value&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)) &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;test&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;FROM &lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.6667px;"&gt;SO_AD_SEG_MET&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10.6667px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;GROUP BY Col1, Col2...... &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Something like this. Can you post the whole script statement you are using and the error you are getting? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;V.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 14:49:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-IF-with-a-date-in-LOAD-Script/m-p/1099897#M631422</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-07-19T14:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: SUM IF with a date in LOAD Script</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-IF-with-a-date-in-LOAD-Script/m-p/1099898#M631423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the error you are getting.&lt;/P&gt;&lt;P&gt;As you are doing aggregate you probably need to add a group by after your load or resident.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 14:50:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-IF-with-a-date-in-LOAD-Script/m-p/1099898#M631423</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2016-07-19T14:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: SUM IF with a date in LOAD Script</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-IF-with-a-date-in-LOAD-Script/m-p/1099899#M631424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to accomplish this sum-if&amp;nbsp; in the load statement.&amp;nbsp; Is that not possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 14:51:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-IF-with-a-date-in-LOAD-Script/m-p/1099899#M631424</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-19T14:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: SUM IF with a date in LOAD Script</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-IF-with-a-date-in-LOAD-Script/m-p/1099900#M631425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Syntax doesn't seem to be wrong, what is the error you are getting? Have you made sure to add the Group by statement as mentioned by &lt;A href="https://community.qlik.com/people/vishsaggi"&gt;vishsaggi&lt;/A&gt;‌ above?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 14:51:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-IF-with-a-date-in-LOAD-Script/m-p/1099900#M631425</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-19T14:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: SUM IF with a date in LOAD Script</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-IF-with-a-date-in-LOAD-Script/m-p/1099901#M631426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is possible, what is the script for the whole table? and what error are you getting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 14:52:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-IF-with-a-date-in-LOAD-Script/m-p/1099901#M631426</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-19T14:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: SUM IF with a date in LOAD Script</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-IF-with-a-date-in-LOAD-Script/m-p/1099902#M631427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is your result?&lt;/P&gt;&lt;P&gt;check the dateformat of &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SO_AD_SEG_MET.w_prd_dt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 14:52:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-IF-with-a-date-in-LOAD-Script/m-p/1099902#M631427</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-19T14:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: SUM IF with a date in LOAD Script</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-IF-with-a-date-in-LOAD-Script/m-p/1099903#M631428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did need to use aggregation (a group by).&amp;nbsp; Thank you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 14:53:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-IF-with-a-date-in-LOAD-Script/m-p/1099903#M631428</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-19T14:53:09Z</dc:date>
    </item>
  </channel>
</rss>

