<?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: Sum If on Load Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-If-on-Load-Script/m-p/1388054#M422443</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much to both of your for taking the time to reply to my question.&lt;/P&gt;&lt;P&gt;It is always good to see different ways of doing it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently using the Group By option from a Resident temporal table and it allows my to do the calculations I needed and store the final table as qvd without the million lines of code reducing the size of the logs massively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again, thank you both for your time and help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 27 Aug 2017 09:04:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-08-27T09:04:03Z</dc:date>
    <item>
      <title>Sum If on Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-If-on-Load-Script/m-p/1388051#M422440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a bit stuck at the moment.&lt;/P&gt;&lt;P&gt;I have a field called "LOG" that has over 1 million lines of text. I am trying to count the number of times that a specific text appears amongst all those lines.&lt;/P&gt;&lt;P&gt;At the moment I am using an expression on my chart and it work perfectly using:&amp;nbsp;&amp;nbsp; sum(if(substringcount(LOG,'Text'),1,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I would like to do that sum on the load script so I can delete the field LOG while saving all the other results on a qvd file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to use that expression on the script and save it as any other new field but it returns invalid expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how can I do the sum if on the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2017 10:07:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-If-on-Load-Script/m-p/1388051#M422440</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-26T10:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sum If on Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-If-on-Load-Script/m-p/1388052#M422441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whenever you are using an aggregation function in the Load script you need to use the &lt;STRONG&gt;Group By clause&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;F1,&lt;/P&gt;&lt;P&gt;F2,&lt;/P&gt;&lt;P&gt;F3,&lt;/P&gt;&lt;P&gt;Sum(Measure) as Amounttotal&lt;/P&gt;&lt;P&gt;From xxxxxxx&lt;/P&gt;&lt;P&gt;Where xxxxxx&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group by F1,F2,F3;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2017 10:31:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-If-on-Load-Script/m-p/1388052#M422441</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-08-26T10:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sum If on Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-If-on-Load-Script/m-p/1388053#M422442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1 example:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;LOAD&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; *, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;If&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;peek&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;CHR&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)=&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;CHR&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;peek&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;COUNT&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)+1, 1) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;&lt;STRONG&gt;COUNT&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;LOAD&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; * &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[&lt;BR /&gt; CHR&lt;BR /&gt; K&lt;BR /&gt; K&lt;BR /&gt; K&lt;BR /&gt; K&lt;BR /&gt; B&lt;BR /&gt; L&lt;BR /&gt; L&lt;BR /&gt; L&lt;BR /&gt; L&lt;BR /&gt; L&lt;BR /&gt; D&lt;BR /&gt; D&lt;BR /&gt; D&lt;BR /&gt; D&lt;BR /&gt; D&lt;BR /&gt; G&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;EXIT&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Script&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2017 17:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-If-on-Load-Script/m-p/1388053#M422442</guid>
      <dc:creator>el_aprendiz111</dc:creator>
      <dc:date>2017-08-26T17:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sum If on Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-If-on-Load-Script/m-p/1388054#M422443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much to both of your for taking the time to reply to my question.&lt;/P&gt;&lt;P&gt;It is always good to see different ways of doing it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently using the Group By option from a Resident temporal table and it allows my to do the calculations I needed and store the final table as qvd without the million lines of code reducing the size of the logs massively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again, thank you both for your time and help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Aug 2017 09:04:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-If-on-Load-Script/m-p/1388054#M422443</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-27T09:04:03Z</dc:date>
    </item>
  </channel>
</rss>

