<?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: Running total with a condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Running-total-with-a-condition/m-p/83652#M13722</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunny for your help. The result is good for the month of April; however if you select other months, it doesn't give correct result. The calculation always seem to start from the period 201804 irrespective of which period is actually being selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I get:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/206444_Capture.JPG" style="height: 227px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what it should be:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/206446_Capture1.JPG" style="height: 291px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;The calculation for Sales and Number of days should start from the selected period. eg if 201802 is selected, then the Balance for the period should be compared with Sales of 201802, and then keep on adding the sales of 201801,201712,... and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jun 2018 04:06:19 GMT</pubDate>
    <dc:creator>bhaskarsharma03</dc:creator>
    <dc:date>2018-06-28T04:06:19Z</dc:date>
    <item>
      <title>Running total with a condition</title>
      <link>https://community.qlik.com/t5/QlikView/Running-total-with-a-condition/m-p/83649#M13719</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;I am trying to calculate running total based on a condition. In the attached sample file, I have taken a sample data for one Customer and one Company. What I want to check is if the Balance for one period is equal (or close) to the sales. If not then add the sales of previous period and continue till the cumulative sales is close to &lt;SPAN style="font-size: 13.3333px;"&gt;(but doesn't exceed)&lt;/SPAN&gt; the Balance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is one example for April (201804):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Is April Balance equal to April Sales?&lt;/P&gt;&lt;P&gt;2. If it is less, then compare April+March Sales with April Balance&lt;/P&gt;&lt;P&gt;3. If still less, then compare April+March+Feb Sales with April Balance&lt;/P&gt;&lt;P&gt;4. Continue till the running Sales total exceeds the Balance, and then take the running total of previous step (as that is the closest but not greater than the April Balance)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 04:56:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-total-with-a-condition/m-p/83649#M13719</guid>
      <dc:creator>bhaskarsharma03</dc:creator>
      <dc:date>2018-06-27T04:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Running total with a condition</title>
      <link>https://community.qlik.com/t5/QlikView/Running-total-with-a-condition/m-p/83650#M13720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any guidance... experts!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 08:34:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-total-with-a-condition/m-p/83650#M13720</guid>
      <dc:creator>bhaskarsharma03</dc:creator>
      <dc:date>2018-06-27T08:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Running total with a condition</title>
      <link>https://community.qlik.com/t5/QlikView/Running-total-with-a-condition/m-p/83651#M13721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at the attached image and qvw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/206387_Capture.PNG" style="height: 401px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 12:12:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-total-with-a-condition/m-p/83651#M13721</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-27T12:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Running total with a condition</title>
      <link>https://community.qlik.com/t5/QlikView/Running-total-with-a-condition/m-p/83652#M13722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunny for your help. The result is good for the month of April; however if you select other months, it doesn't give correct result. The calculation always seem to start from the period 201804 irrespective of which period is actually being selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I get:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/206444_Capture.JPG" style="height: 227px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what it should be:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/206446_Capture1.JPG" style="height: 291px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;The calculation for Sales and Number of days should start from the selected period. eg if 201802 is selected, then the Balance for the period should be compared with Sales of 201802, and then keep on adding the sales of 201801,201712,... and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2018 04:06:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-total-with-a-condition/m-p/83652#M13722</guid>
      <dc:creator>bhaskarsharma03</dc:creator>
      <dc:date>2018-06-28T04:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Running total with a condition</title>
      <link>https://community.qlik.com/t5/QlikView/Running-total-with-a-condition/m-p/83653#M13723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fixed the expressions now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/206486_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2018 10:54:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-total-with-a-condition/m-p/83653#M13723</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-28T10:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Running total with a condition</title>
      <link>https://community.qlik.com/t5/QlikView/Running-total-with-a-condition/m-p/83654#M13724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunny. This works great &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wanted to know... can this be done at the back-end as well - may be five columns calculated at the script level !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2018 11:26:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-total-with-a-condition/m-p/83654#M13724</guid>
      <dc:creator>bhaskarsharma03</dc:creator>
      <dc:date>2018-06-28T11:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Running total with a condition</title>
      <link>https://community.qlik.com/t5/QlikView/Running-total-with-a-condition/m-p/83655#M13725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you might be able to do this in the script also&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2018 11:32:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-total-with-a-condition/m-p/83655#M13725</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-28T11:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Running total with a condition</title>
      <link>https://community.qlik.com/t5/QlikView/Running-total-with-a-condition/m-p/83656#M13726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please help, if that doesn't require too much of an effort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2018 11:39:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-total-with-a-condition/m-p/83656#M13726</guid>
      <dc:creator>bhaskarsharma03</dc:creator>
      <dc:date>2018-06-28T11:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Running total with a condition</title>
      <link>https://community.qlik.com/t5/QlikView/Running-total-with-a-condition/m-p/83657#M13727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will require some time and effort to come up with the script which does what you want.. I will try to work on it as and when I get some time &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2018 11:41:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-total-with-a-condition/m-p/83657#M13727</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-28T11:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Running total with a condition</title>
      <link>https://community.qlik.com/t5/QlikView/Running-total-with-a-condition/m-p/83658#M13728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having looked at this a little more... it will be very challenging to do this in the script because this is mostly driven by selection. Is there a reason you are looking to do this in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2018 13:04:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-total-with-a-condition/m-p/83658#M13728</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-28T13:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Running total with a condition</title>
      <link>https://community.qlik.com/t5/QlikView/Running-total-with-a-condition/m-p/83659#M13729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Considering that I have close to a billion records (if not more), I am trying to minimize the front end calculations as much as I can.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2018 16:44:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-total-with-a-condition/m-p/83659#M13729</guid>
      <dc:creator>bhaskarsharma03</dc:creator>
      <dc:date>2018-06-28T16:44:17Z</dc:date>
    </item>
  </channel>
</rss>

