<?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: accumulation in script - still struggling in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/accumulation-in-script-still-struggling/m-p/378934#M141347</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a simpler code -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Load1:&lt;BR /&gt;load * inline&lt;BR /&gt;[data1, data2&lt;BR /&gt;a,1&lt;BR /&gt;b,1&lt;BR /&gt;c,-1&lt;BR /&gt;d,1&lt;BR /&gt;e,-1&lt;BR /&gt;b,1&lt;BR /&gt;b,-1&lt;BR /&gt;a,-1&lt;BR /&gt;a,2&lt;BR /&gt;a,3&lt;BR /&gt;a,4&lt;BR /&gt;a,5];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DingoLog:&lt;BR /&gt;LOAD *,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( Previous('data1')=data1,Previous('data3')+data2,data2) as data3&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident Load1 Order by data1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is this not giving me counts for data3?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Aug 2012 19:37:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-17T19:37:10Z</dc:date>
    <item>
      <title>accumulation in script - still struggling</title>
      <link>https://community.qlik.com/t5/QlikView/accumulation-in-script-still-struggling/m-p/378930#M141343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attaching the sample qvw file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not getting the counts for LoginsOnThisHost field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could somebody please help!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 18:23:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/accumulation-in-script-still-struggling/m-p/378930#M141343</guid>
      <dc:creator />
      <dc:date>2012-08-17T18:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: accumulation in script - still struggling</title>
      <link>https://community.qlik.com/t5/QlikView/accumulation-in-script-still-struggling/m-p/378931#M141344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;change the 3rd expression as count(LoginsOnThisHos)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 19:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/accumulation-in-script-still-struggling/m-p/378931#M141344</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-17T19:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: accumulation in script - still struggling</title>
      <link>https://community.qlik.com/t5/QlikView/accumulation-in-script-still-struggling/m-p/378932#M141345</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;your expression shows field value only. Try to use something like &lt;/P&gt;&lt;P&gt;count&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LoginsOnThisHost&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) or Sum(&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LoginsOnThisHost&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hope it will help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 19:06:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/accumulation-in-script-still-struggling/m-p/378932#M141345</guid>
      <dc:creator>bgerchikov</dc:creator>
      <dc:date>2012-08-17T19:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: accumulation in script - still struggling</title>
      <link>https://community.qlik.com/t5/QlikView/accumulation-in-script-still-struggling/m-p/378933#M141346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Boris and Srikant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Making it count or sum just makes the point clearer - i get zeros. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indeed, i want the field value of loginsonthishost because the accumulation is done in the script using a set of previous functions and ordering the resident load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 19:10:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/accumulation-in-script-still-struggling/m-p/378933#M141346</guid>
      <dc:creator />
      <dc:date>2012-08-17T19:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: accumulation in script - still struggling</title>
      <link>https://community.qlik.com/t5/QlikView/accumulation-in-script-still-struggling/m-p/378934#M141347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a simpler code -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Load1:&lt;BR /&gt;load * inline&lt;BR /&gt;[data1, data2&lt;BR /&gt;a,1&lt;BR /&gt;b,1&lt;BR /&gt;c,-1&lt;BR /&gt;d,1&lt;BR /&gt;e,-1&lt;BR /&gt;b,1&lt;BR /&gt;b,-1&lt;BR /&gt;a,-1&lt;BR /&gt;a,2&lt;BR /&gt;a,3&lt;BR /&gt;a,4&lt;BR /&gt;a,5];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DingoLog:&lt;BR /&gt;LOAD *,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( Previous('data1')=data1,Previous('data3')+data2,data2) as data3&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident Load1 Order by data1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is this not giving me counts for data3?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 19:37:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/accumulation-in-script-still-struggling/m-p/378934#M141347</guid>
      <dc:creator />
      <dc:date>2012-08-17T19:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: accumulation in script - still struggling</title>
      <link>https://community.qlik.com/t5/QlikView/accumulation-in-script-still-struggling/m-p/378935#M141348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to clear selection - you'll see numbers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 20:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/accumulation-in-script-still-struggling/m-p/378935#M141348</guid>
      <dc:creator>bgerchikov</dc:creator>
      <dc:date>2012-08-17T20:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: accumulation in script - still struggling</title>
      <link>https://community.qlik.com/t5/QlikView/accumulation-in-script-still-struggling/m-p/378936#M141349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After playing with it for some time, here is what seems to be working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load1:&lt;BR /&gt;load * inline&lt;BR /&gt;[data1, data2&lt;BR /&gt;a,1&lt;BR /&gt;b,1&lt;BR /&gt;c,-1&lt;BR /&gt;d,1&lt;BR /&gt;e,-1&lt;BR /&gt;b,1&lt;BR /&gt;b,-1&lt;BR /&gt;a,-1&lt;BR /&gt;a,2&lt;BR /&gt;a,3&lt;BR /&gt;a,4&lt;BR /&gt;a,5];&lt;/P&gt;&lt;P&gt;DingoLog:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( Peek(data1)=data1,Peek(data3)+data2,data2) as data3&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident Load1 Order by data1,data2;&lt;/P&gt;&lt;P&gt;DROP Table Load1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: There is some strange difference between peek and previous.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 20:37:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/accumulation-in-script-still-struggling/m-p/378936#M141349</guid>
      <dc:creator />
      <dc:date>2012-08-17T20:37:06Z</dc:date>
    </item>
  </channel>
</rss>

