<?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: question in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/question-in-set-analysis/m-p/269989#M101233</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Many Thanks for ur help&lt;/P&gt;&lt;P&gt;but i know this is to get the balance between 2 dates&lt;/P&gt;&lt;P&gt;but what i want is to add the balance before to be the new balance &lt;/P&gt;&lt;P&gt;i mean each row the balance of the above raw is added to the new calcualtion&lt;/P&gt;&lt;P&gt;i know how to makle this but in the first raw i want to add expression and in other raws another expression &lt;/P&gt;&lt;P&gt;like the example i explained above in the main thread &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jul 2011 09:52:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-11T09:52:27Z</dc:date>
    <item>
      <title>question in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/question-in-set-analysis/m-p/269985#M101229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please i have a problem&lt;/P&gt;&lt;P&gt;i have 3 variables vBeforeDate and vStartDate and vEndDate&lt;/P&gt;&lt;P&gt;and 5 columns : CompanyName, Date, Debit, Credit, Balance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want when i enter date in vBeforeDate variable tyhe balances till this date are summed and this is balance before this date&lt;/P&gt;&lt;P&gt;for dates after this one (in the beriod of&amp;nbsp; vStartDate and vEndDate)&lt;/P&gt;&lt;P&gt;the balance = balance before+debit-credit&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;balance before 1/1/2011 was 400&lt;/P&gt;&lt;P&gt;and i have 2 dates after that&lt;/P&gt;&lt;P&gt;30/1/2011&amp;nbsp; debit=10 credit= 20&amp;nbsp; so balance should be 400+10-20=390&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5/2/2011 debit=100 credit= 30 so balance should be the last balance which is 390+debit-credit ....&amp;gt; 390+100-30=460&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the problem is how to add to each row the balnce of the before row&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attachment below can clarify my problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 08:53:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-in-set-analysis/m-p/269985#M101229</guid>
      <dc:creator />
      <dc:date>2011-07-11T08:53:49Z</dc:date>
    </item>
    <item>
      <title>question in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/question-in-set-analysis/m-p/269986#M101230</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;&amp;nbsp;&amp;nbsp; Can you please provide the qvw file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 08:58:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-in-set-analysis/m-p/269986#M101230</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-07-11T08:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: question in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/question-in-set-analysis/m-p/269987#M101231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here it's ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 09:06:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-in-set-analysis/m-p/269987#M101231</guid>
      <dc:creator />
      <dc:date>2011-07-11T09:06:44Z</dc:date>
    </item>
    <item>
      <title>question in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/question-in-set-analysis/m-p/269988#M101232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Here is a set expression which will give you the balance between the startdate and enddate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; sum({1&amp;lt;Date = {"&amp;gt;=$(#vStartDate)&amp;lt;=$(#vEndDate)"},Year = ,Month =&amp;gt;}Debit -Credit)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You can use the same for getting balance before date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Meaning enter the startdate as 0 and end date as the date before which you want the balance. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 09:34:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-in-set-analysis/m-p/269988#M101232</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-07-11T09:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: question in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/question-in-set-analysis/m-p/269989#M101233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Many Thanks for ur help&lt;/P&gt;&lt;P&gt;but i know this is to get the balance between 2 dates&lt;/P&gt;&lt;P&gt;but what i want is to add the balance before to be the new balance &lt;/P&gt;&lt;P&gt;i mean each row the balance of the above raw is added to the new calcualtion&lt;/P&gt;&lt;P&gt;i know how to makle this but in the first raw i want to add expression and in other raws another expression &lt;/P&gt;&lt;P&gt;like the example i explained above in the main thread &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 09:52:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-in-set-analysis/m-p/269989#M101233</guid>
      <dc:creator />
      <dc:date>2011-07-11T09:52:27Z</dc:date>
    </item>
    <item>
      <title>question in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/question-in-set-analysis/m-p/269990#M101234</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;&amp;nbsp;&amp;nbsp; The answer to your question &lt;/P&gt;&lt;P&gt;"i know how to makle this but in the first raw i want to add expression and in other raws another expression"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; is that you can use the if statement, say&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(rowno() = 1, this expression, other expression)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 09:57:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-in-set-analysis/m-p/269990#M101234</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-07-11T09:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: question in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/question-in-set-analysis/m-p/269991#M101235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Alot &lt;/P&gt;&lt;P&gt;i write it but the result is not OK&lt;/P&gt;&lt;P&gt;can you Please see attached qvw file and expressions in it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 11:09:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-in-set-analysis/m-p/269991#M101235</guid>
      <dc:creator />
      <dc:date>2011-07-11T11:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: question in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/question-in-set-analysis/m-p/269992#M101236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i answered it &lt;/P&gt;&lt;P&gt;i got the idea from this thread and enhanced it &lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/82992#82992"&gt;http://community.qlik.com/message/82992#82992&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the final solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 12:34:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-in-set-analysis/m-p/269992#M101236</guid>
      <dc:creator />
      <dc:date>2011-07-11T12:34:52Z</dc:date>
    </item>
  </channel>
</rss>

