<?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: Error in the SCript ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734092#M1049043</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When use Group by you have to use all dimension which is available in the load script &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outstanding:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DR_CR,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TD_DOC_DRCR_FLAG,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TD_DOC_DT,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Customer No],&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TD_DOC_DT_Year,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TD_DOC_DT_Month,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TD_MAIN_ACNT_CODE,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TD_DOC_DTYearMonth,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(DR_CR='D',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum(OPENING) +&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum( If( TD_DOC_DT &amp;lt;= $(vMAX) and TD_DOC_DRCR_FLAG = 'D', TD_DOC_AMT ) ) -&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum( If( TD_DOC_DT &amp;lt;= $(vMAX) and TD_DOC_DRCR_FLAG = 'C', TD_DOC_AMT ) ),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum( If( TD_DOC_DT &amp;lt;= $(vMAX) and TD_DOC_DRCR_FLAG = 'D', TD_DOC_AMT) )-&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum( If( TD_DOC_DT &amp;lt;= $(vMAX) and TD_DOC_DRCR_FLAG = 'C', TD_DOC_AMT) )-&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum(OPENING))&amp;nbsp; as SumField&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident CUR_PRV_TRANS&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Group BY&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DR_CR,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TD_DOC_DRCR_FLAG,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TD_DOC_DT,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Customer No],&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TD_DOC_DT_Year,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TD_DOC_DT_Month,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TD_MAIN_ACNT_CODE,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TD_DOC_DTYearMonth;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Oct 2014 12:43:00 GMT</pubDate>
    <dc:creator>its_anandrjs</dc:creator>
    <dc:date>2014-10-30T12:43:00Z</dc:date>
    <item>
      <title>Error in the SCript ?</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734091#M1049042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Outstanding:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;DR_CR,&lt;/P&gt;&lt;P&gt;TD_DOC_DRCR_FLAG,&lt;/P&gt;&lt;P&gt;TD_DOC_DT,&lt;/P&gt;&lt;P&gt;[Customer No],&lt;/P&gt;&lt;P&gt;TD_DOC_DT_Year,&lt;/P&gt;&lt;P&gt;TD_DOC_DT_Month,&lt;/P&gt;&lt;P&gt;TD_MAIN_ACNT_CODE,&lt;/P&gt;&lt;P&gt;TD_DOC_DTYearMonth,&lt;/P&gt;&lt;P&gt;if(DR_CR='D',&lt;/P&gt;&lt;P&gt;sum(OPENING) +&lt;/P&gt;&lt;P&gt;sum( If( TD_DOC_DT &amp;lt;= $(vMAX) and TD_DOC_DRCR_FLAG = 'D', TD_DOC_AMT ) ) -&lt;/P&gt;&lt;P&gt;sum( If( TD_DOC_DT &amp;lt;= $(vMAX) and TD_DOC_DRCR_FLAG = 'C', TD_DOC_AMT ) ),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( If( TD_DOC_DT &amp;lt;= $(vMAX) and TD_DOC_DRCR_FLAG = 'D', TD_DOC_AMT) )-&lt;/P&gt;&lt;P&gt;sum( If( TD_DOC_DT &amp;lt;= $(vMAX) and TD_DOC_DRCR_FLAG = 'C', TD_DOC_AMT) )-&lt;/P&gt;&lt;P&gt;sum(OPENING))&amp;nbsp; as SumField&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident CUR_PRV_TRANS&lt;/P&gt;&lt;P&gt;Group BY [Customer No],TD_DOC_DT_Month,TD_DOC_DT,TD_MAIN_ACNT_CODE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Heather&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 12:38:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734091#M1049042</guid>
      <dc:creator />
      <dc:date>2014-10-30T12:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error in the SCript ?</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734092#M1049043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When use Group by you have to use all dimension which is available in the load script &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outstanding:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DR_CR,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TD_DOC_DRCR_FLAG,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TD_DOC_DT,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Customer No],&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TD_DOC_DT_Year,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TD_DOC_DT_Month,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TD_MAIN_ACNT_CODE,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TD_DOC_DTYearMonth,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(DR_CR='D',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum(OPENING) +&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum( If( TD_DOC_DT &amp;lt;= $(vMAX) and TD_DOC_DRCR_FLAG = 'D', TD_DOC_AMT ) ) -&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum( If( TD_DOC_DT &amp;lt;= $(vMAX) and TD_DOC_DRCR_FLAG = 'C', TD_DOC_AMT ) ),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum( If( TD_DOC_DT &amp;lt;= $(vMAX) and TD_DOC_DRCR_FLAG = 'D', TD_DOC_AMT) )-&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum( If( TD_DOC_DT &amp;lt;= $(vMAX) and TD_DOC_DRCR_FLAG = 'C', TD_DOC_AMT) )-&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum(OPENING))&amp;nbsp; as SumField&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident CUR_PRV_TRANS&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Group BY&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DR_CR,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TD_DOC_DRCR_FLAG,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TD_DOC_DT,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Customer No],&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TD_DOC_DT_Year,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TD_DOC_DT_Month,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TD_MAIN_ACNT_CODE,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TD_DOC_DTYearMonth;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 12:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734092#M1049043</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-10-30T12:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error in the SCript ?</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734093#M1049044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All fields without an aggregration should be included in the group by clause&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 12:43:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734093#M1049044</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2014-10-30T12:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error in the SCript ?</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734094#M1049045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Outstanding:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Customer No],&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TD_DOC_DT_Month,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TD_DOC_DT,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TD_MAIN_ACNT_CODE,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(DR_CR='D',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum(OPENING) +&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum( If( TD_DOC_DT &amp;lt;= $(vMAX) and TD_DOC_DRCR_FLAG = 'D', TD_DOC_AMT ) ) -&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum( If( TD_DOC_DT &amp;lt;= $(vMAX) and TD_DOC_DRCR_FLAG = 'C', TD_DOC_AMT ) ),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum( If( TD_DOC_DT &amp;lt;= $(vMAX) and TD_DOC_DRCR_FLAG = 'D', TD_DOC_AMT) )-&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum( If( TD_DOC_DT &amp;lt;= $(vMAX) and TD_DOC_DRCR_FLAG = 'C', TD_DOC_AMT) )-&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum(OPENING))&amp;nbsp; as SumField&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident CUR_PRV_TRANS&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Group BY [Customer No],TD_DOC_DT_Month,TD_DOC_DT,TD_MAIN_ACNT_CODE;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;let me know if it works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 12:43:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734094#M1049045</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-10-30T12:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error in the SCript ?</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734095#M1049046</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;You are missing &lt;STRONG&gt;TD_DOC_DT_Year,TD_DOC_DTYearMonth &lt;/STRONG&gt;field from group by.&lt;/P&gt;&lt;P&gt;If you dont want to include it in group by then use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ONLY(TD_DOC_DT_Year) as TD_DOC_DT_Year,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your script.&lt;/P&gt;&lt;P&gt;When you are using aggreation function like sum() then you have to include all other field in group by clause.&lt;/P&gt;&lt;P&gt;If you want to avoid it to using in group by clause then use ONLY() as i have suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression can be more optimized if you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 12:45:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734095#M1049046</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-10-30T12:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error in the SCript ?</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734096#M1049047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to group by by only four fields that is [Customer No],TD_DOC_DT_Month,TD_DOC_DT,TD_MAIN_ACNT_CODE&lt;/P&gt;&lt;P&gt;then use only this four fields in the load script otherwise you have to use all fields in group by statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 12:46:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734096#M1049047</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-10-30T12:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error in the SCript ?</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734097#M1049048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Error in Expression :')' expected ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 12:49:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734097#M1049048</guid>
      <dc:creator />
      <dc:date>2014-10-30T12:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error in the SCript ?</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734098#M1049049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The logic I want to suggest is that besides&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Customer No],&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TD_DOC_DT_Month,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;TD_DOC_DT,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;TD_MAIN_ACNT_CODE,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;use the field computed with sum&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;because only fields in group by can be extracted from a load instruction&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 12:52:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734098#M1049049</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-10-30T12:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error in the SCript ?</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734099#M1049050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Error in Expression :')' expected ...&lt;/P&gt;&lt;DIV class="jive-thread-reply-btn-correct" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/140194" style="margin: 0 20px 0 0; padding: 2px 14px 4px 28px; font-weight: bold; font-style: inherit; font-family: inherit; color: #3778c7; background-color: #f3f3f3;"&gt;Error in the SCript ?&lt;/A&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 12:59:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734099#M1049050</guid>
      <dc:creator />
      <dc:date>2014-10-30T12:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error in the SCript ?</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734100#M1049051</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;Let me know how many fields are to be loaded from the load script if only four requires then comment the rest of the fields because if you use this fields all to be need for the group by statement see the load script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Outstanding:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;//DR_CR,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;//TD_DOC_DRCR_FLAG,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;TD_DOC_DT,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;[Customer No],&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;//TD_DOC_DT_Year,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;TD_DOC_DT_Month,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;TD_MAIN_ACNT_CODE,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;//TD_DOC_DTYearMonth,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;if(DR_CR='D',&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;sum(OPENING) +&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;sum( If( TD_DOC_DT &amp;lt;= $(vMAX) and TD_DOC_DRCR_FLAG = 'D', TD_DOC_AMT ) ) -&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;sum( If( TD_DOC_DT &amp;lt;= $(vMAX) and TD_DOC_DRCR_FLAG = 'C', TD_DOC_AMT ) ),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;sum( If( TD_DOC_DT &amp;lt;= $(vMAX) and TD_DOC_DRCR_FLAG = 'D', TD_DOC_AMT) )-&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;sum( If( TD_DOC_DT &amp;lt;= $(vMAX) and TD_DOC_DRCR_FLAG = 'C', TD_DOC_AMT) )-&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;sum(OPENING))&amp;nbsp; as SumField&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Resident CUR_PRV_TRANS&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Group BY [Customer No],TD_DOC_DT_Month,TD_DOC_DT,TD_MAIN_ACNT_CODE;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;In bold is the script and line start with // is commented that is not loaded.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 13:05:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734100#M1049051</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-10-30T13:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error in the SCript ?</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734101#M1049052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But Still Error in Expression:')' Expected&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 13:16:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734101#M1049052</guid>
      <dc:creator />
      <dc:date>2014-10-30T13:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error in the SCript ?</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734102#M1049053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Heather&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems your problem is with the $(vMAX) variable. What's its content?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Márcio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 13:20:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734102#M1049053</guid>
      <dc:creator>Marcio_Campestrini</dc:creator>
      <dc:date>2014-10-30T13:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error in the SCript ?</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734103#M1049054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LET vMAX&amp;nbsp; = max(TD_DOC_DT);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Required then Change to Month as Maximum , then it is useful for me...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Heather&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 13:24:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734103#M1049054</guid>
      <dc:creator />
      <dc:date>2014-10-30T13:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error in the SCript ?</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734104#M1049055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Heather&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you look at your image, you can see no value where $(vMAX) should exist. I think that is your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Márcio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 13:28:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734104#M1049055</guid>
      <dc:creator>Marcio_Campestrini</dc:creator>
      <dc:date>2014-10-30T13:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error in the SCript ?</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734105#M1049056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Once Check your load script may be some open and close bracket "( ) " problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 13:28:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734105#M1049056</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-10-30T13:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error in the SCript ?</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734106#M1049057</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;where you are setting the Variable value. can you post the entire script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 13:30:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734106#M1049057</guid>
      <dc:creator />
      <dc:date>2014-10-30T13:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error in the SCript ?</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734107#M1049058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you put the terminator semi colon also like (;) at the end of script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 13:32:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734107#M1049058</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-10-30T13:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error in the SCript ?</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734108#M1049059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Every thing is Fine, but it is showing : Error in Expression&amp;nbsp; : ')'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 13:37:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734108#M1049059</guid>
      <dc:creator />
      <dc:date>2014-10-30T13:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error in the SCript ?</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734109#M1049060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the error is because the varaible value is blank.&lt;/P&gt;&lt;P&gt;you can post the entire script to check why the variable value is blank.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 13:38:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734109#M1049060</guid>
      <dc:creator />
      <dc:date>2014-10-30T13:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error in the SCript ?</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734110#M1049061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LET vMAX&amp;nbsp; = max(date(TD_DOC_DT));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CN_Customer_Code_Temp:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;TD_TH_SYS_ID,&lt;/P&gt;&lt;P&gt;TD_DOC_DT,&lt;/P&gt;&lt;P&gt;TD_DOC_DRCR_FLAG,&lt;/P&gt;&lt;P&gt;TD_DOC_AMT,&lt;/P&gt;&lt;P&gt;TD_MAIN_ACNT_CODE,&lt;/P&gt;&lt;P&gt;TD_SUB_ACNT_CODE as [Customer No]&lt;/P&gt;&lt;P&gt;Resident PRV_TRANS_DETAIL_Temp&lt;/P&gt;&lt;P&gt;WHERE TD_MAIN_ACNT_CODE='106100'&lt;/P&gt;&lt;P&gt;and TD_SUB_ACNT_CODE &amp;lt;&amp;gt; NULL();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;TD_TH_SYS_ID,&lt;/P&gt;&lt;P&gt;TD_DOC_DT,&lt;/P&gt;&lt;P&gt;TD_DOC_DRCR_FLAG,&lt;/P&gt;&lt;P&gt;TD_DOC_AMT,&lt;/P&gt;&lt;P&gt;TD_MAIN_ACNT_CODE,&lt;/P&gt;&lt;P&gt;TD_SUB_ACNT_CODE AS [Customer No]&lt;/P&gt;&lt;P&gt;Resident CUR_TRANS_DETAIL_Temp&lt;/P&gt;&lt;P&gt;WHERE TD_MAIN_ACNT_CODE='106100'&lt;/P&gt;&lt;P&gt;and TD_SUB_ACNT_CODE &amp;lt;&amp;gt; NULL();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CUR_PRV_TRANS:&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;TD_TH_SYS_ID,&lt;/P&gt;&lt;P&gt;TD_DOC_DT,&lt;/P&gt;&lt;P&gt;month(TD_DOC_DT) as TD_DOC_DT_Month,&lt;/P&gt;&lt;P&gt;year(TD_DOC_DT) as TD_DOC_DT_Year,&lt;/P&gt;&lt;P&gt;date(Date#(year(TD_DOC_DT)&amp;amp;'-'&amp;amp;month(TD_DOC_DT),'YYYY-MMM'),'MMM-YYYY') as TD_DOC_DTYearMonth,&lt;/P&gt;&lt;P&gt;TD_DOC_DRCR_FLAG,&lt;/P&gt;&lt;P&gt;TD_DOC_AMT,&lt;/P&gt;&lt;P&gt;//if(TD_DOC_DRCR_FLAG='D',TD_DOC_AMT,0) as Deb_Doc_Amt,&lt;/P&gt;&lt;P&gt;//if(TD_DOC_DRCR_FLAG='C',TD_DOC_AMT,0) as Cred_Doc_Amt,&lt;/P&gt;&lt;P&gt;TD_MAIN_ACNT_CODE,&lt;/P&gt;&lt;P&gt;[Customer No]&lt;/P&gt;&lt;P&gt;//if(Previous([Customer No])=[Customer No],&lt;/P&gt;&lt;P&gt;//numsum( TD_DOC_AMT, peek( 'Bsum' ) ),TD_DOC_AMT) as Bsum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident CN_Customer_Code_Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outer Join(CUR_PRV_TRANS)&lt;/P&gt;&lt;P&gt;Outstanding:&lt;/P&gt;&lt;P&gt;LOAD COMP_CODE, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACNT_YEAR, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CAL_YEAR, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MAIN_ACNT_CODE, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUB_ACNT_CODE as [Customer No], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUB_ACNT_CODE as Custcode,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OPENING, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DR_CR&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is [Sheet 1$]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop tables PRV_TRANS_DETAIL_Temp,CUR_TRANS_DETAIL_Temp,CN_Customer_Code_Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outstanding:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;//DR_CR,&lt;/P&gt;&lt;P&gt;//TD_DOC_DRCR_FLAG,&lt;/P&gt;&lt;P&gt;TD_DOC_DT,&lt;/P&gt;&lt;P&gt;[Customer No],&lt;/P&gt;&lt;P&gt;//TD_DOC_DT_Year,&lt;/P&gt;&lt;P&gt;TD_DOC_DT_Month,&lt;/P&gt;&lt;P&gt;TD_MAIN_ACNT_CODE,&lt;/P&gt;&lt;P&gt;//TD_DOC_DTYearMonth,&lt;/P&gt;&lt;P&gt;if(DR_CR='D',&lt;/P&gt;&lt;P&gt;sum(OPENING) +&lt;/P&gt;&lt;P&gt;sum( If( TD_DOC_DT &amp;lt;= $(vMaxDT) and TD_DOC_DRCR_FLAG = 'D', TD_DOC_AMT ) ) -&lt;/P&gt;&lt;P&gt;sum( If( TD_DOC_DT &amp;lt;= $(vMaxDT) and TD_DOC_DRCR_FLAG = 'C', TD_DOC_AMT ) ),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( If( TD_DOC_DT &amp;lt;= $(vMaxDT) and TD_DOC_DRCR_FLAG = 'D', TD_DOC_AMT) )-&lt;/P&gt;&lt;P&gt;sum( If( TD_DOC_DT &amp;lt;= $(vMaxDT) and TD_DOC_DRCR_FLAG = 'C', TD_DOC_AMT) )-&lt;/P&gt;&lt;P&gt;sum(OPENING))&amp;nbsp; as SumField&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident CUR_PRV_TRANS&lt;/P&gt;&lt;P&gt;Group BY [Customer No],TD_DOC_DT_Month,TD_MAIN_ACNT_CODE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table CUR_PRV_TRANS;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 03:04:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-the-SCript/m-p/734110#M1049061</guid>
      <dc:creator />
      <dc:date>2014-10-31T03:04:02Z</dc:date>
    </item>
  </channel>
</rss>

