<?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: Script error calculating the sum of values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-error-calculating-the-sum-of-values/m-p/112776#M758192</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you that worked, you are right we cannot use Set-analysis in the script itself&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Sep 2018 18:10:41 GMT</pubDate>
    <dc:creator>bhaveshp90</dc:creator>
    <dc:date>2018-09-10T18:10:41Z</dc:date>
    <item>
      <title>Script error calculating the sum of values</title>
      <link>https://community.qlik.com/t5/QlikView/Script-error-calculating-the-sum-of-values/m-p/112772#M758185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;My below script gives me an error for Final Acceptance field as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to calculate the sum of the calc_delay values where Overview_Milestone_Point = 'Final Acceptance Complete&lt;STRONG style="font-size: 10pt;"&gt;'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Where am I doing wrong here?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Overview_Milestone:&lt;/P&gt;&lt;P&gt;LOAD Project_Number &amp;amp;'-'&amp;amp; Region &amp;amp;'-'&amp;amp; if (match(Country_Name,'US','UK','Canada','SE')&amp;gt;0, Country_Name, Capitalize(Country_Name)) &amp;amp;'-'&amp;amp; Snapshot_Date as Project_Overview_Milestone_Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Overview_Milestone_Point,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; calc_delay&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Milestone1:&lt;/P&gt;&lt;P&gt;NoConcatenate load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Final_Acceptance = Sum({&amp;lt;Overview_Milestone_Point = {'Final Acceptance Complete'}&amp;gt;}calc_delay)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Resident Overview_Milestone;&lt;/P&gt;&lt;P&gt;drop table Overview_Milestone;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Bhavesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-error-calculating-the-sum-of-values/m-p/112772#M758185</guid>
      <dc:creator>bhaveshp90</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Script error calculating the sum of values</title>
      <link>https://community.qlik.com/t5/QlikView/Script-error-calculating-the-sum-of-values/m-p/112773#M758186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/280245"&gt;bhaveshp90&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shouldn't the Final_Acceptance field be as follows:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&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; font-size: 13px;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Milestone1:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;load&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;*,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;Sum({&amp;lt;Overview_Milestone_Point = {'Final Acceptance Complete'}&amp;gt;}calc_delay) AS &lt;SPAN style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;&lt;STRONG&gt;Final_Acceptance &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="color: #3d3d3d; font-style: inherit; font-size: 13px; font-family: inherit;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident Overview_Milestone;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;drop table Overview_Milestone;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If not the case, please can you share the error that you are getting, so that it will be easier to troubleshoot?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Rajiv.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 17:55:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-error-calculating-the-sum-of-values/m-p/112773#M758186</guid>
      <dc:creator>rajivmeher</dc:creator>
      <dc:date>2018-09-10T17:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Script error calculating the sum of values</title>
      <link>https://community.qlik.com/t5/QlikView/Script-error-calculating-the-sum-of-values/m-p/112774#M758188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be as below:&amp;nbsp; (&lt;STRONG&gt;Note: I don't think you can use Set Analysis in the script)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Milestone1:&lt;/P&gt;&lt;P&gt;NoConcatenate load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(&lt;STRONG&gt;Overview_Milestone_Point =&lt;STRONG&gt;'Final Acceptance Complete'&lt;/STRONG&gt;,[&lt;STRONG&gt;calc_delay],0&lt;/STRONG&gt;) as &lt;STRONG&gt;Final_Acceptance&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Resident Overview_Milestone;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then do the SUM in the front end charts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 17:59:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-error-calculating-the-sum-of-values/m-p/112774#M758188</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2018-09-10T17:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Script error calculating the sum of values</title>
      <link>https://community.qlik.com/t5/QlikView/Script-error-calculating-the-sum-of-values/m-p/112775#M758190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bhavesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set Expression cannot be written in edit script,&amp;nbsp; you can write in front end&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 18:04:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-error-calculating-the-sum-of-values/m-p/112775#M758190</guid>
      <dc:creator>santhana</dc:creator>
      <dc:date>2018-09-10T18:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Script error calculating the sum of values</title>
      <link>https://community.qlik.com/t5/QlikView/Script-error-calculating-the-sum-of-values/m-p/112776#M758192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you that worked, you are right we cannot use Set-analysis in the script itself&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 18:10:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-error-calculating-the-sum-of-values/m-p/112776#M758192</guid>
      <dc:creator>bhaveshp90</dc:creator>
      <dc:date>2018-09-10T18:10:41Z</dc:date>
    </item>
  </channel>
</rss>

