<?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: If (Sum()) in load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-Sum-in-load-script/m-p/1603503#M736361</link>
    <description>&lt;P&gt;I would like to categorize both of the group as below, but it keep showing error in the script.&lt;/P&gt;&lt;P&gt;If(Sum(@22)&amp;gt;0,Count(DISTINCT @2),0)as PartUsedQty,&lt;/P&gt;&lt;P&gt;If(Sum(@22)=0,Count(DISTINCT @2),0)as NonPartUsedQty,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jul 2019 07:11:59 GMT</pubDate>
    <dc:creator>wendytham</dc:creator>
    <dc:date>2019-07-18T07:11:59Z</dc:date>
    <item>
      <title>If (Sum()) in load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-in-load-script/m-p/1603466#M736359</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to load the below script but it shows error.&lt;/P&gt;&lt;P&gt;Can someone helps?&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;If (sum(If (IsNull(@22), 0 ,@22))&amp;gt;0, &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/125485"&gt;@20&lt;/a&gt;, 'Non_used') as Part#,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-in-load-script/m-p/1603466#M736359</guid>
      <dc:creator>wendytham</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: If (Sum()) in load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-in-load-script/m-p/1603473#M736360</link>
      <description>&lt;P&gt;Do you really need sum() here? If yes, may be you are missing Group By clause with it? If that is not the case, try to share more info on error and script snippet you are using, may be a screen shot.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 06:23:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-in-load-script/m-p/1603473#M736360</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-07-18T06:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: If (Sum()) in load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-in-load-script/m-p/1603503#M736361</link>
      <description>&lt;P&gt;I would like to categorize both of the group as below, but it keep showing error in the script.&lt;/P&gt;&lt;P&gt;If(Sum(@22)&amp;gt;0,Count(DISTINCT @2),0)as PartUsedQty,&lt;/P&gt;&lt;P&gt;If(Sum(@22)=0,Count(DISTINCT @2),0)as NonPartUsedQty,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 07:11:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-in-load-script/m-p/1603503#M736361</guid>
      <dc:creator>wendytham</dc:creator>
      <dc:date>2019-07-18T07:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: If (Sum()) in load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-in-load-script/m-p/1611991#M736362</link>
      <description>&lt;P&gt;Wendy, the best thing would be if you can attach what you have in the way of an app, or a smaller sample that shows the issue, as it is a bit difficult to try to help when we do not even have the error message being thrown... I am assuming you are just getting 'bad expression' in the expression editor, but not sure...&amp;nbsp; If you can attach an app, folks can check the data model and everything to try to figure out what is going wrong.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 13:17:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-in-load-script/m-p/1611991#M736362</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-08-13T13:17:27Z</dc:date>
    </item>
  </channel>
</rss>

