<?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: YTD portion calculation (in script) for cost allocation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YTD-portion-calculation-in-script-for-cost-allocation/m-p/1269174#M856430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorted this, finally !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Feb 2017 23:25:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-02-13T23:25:16Z</dc:date>
    <item>
      <title>YTD portion calculation (in script) for cost allocation</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-portion-calculation-in-script-for-cost-allocation/m-p/1269173#M856429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community&lt;/P&gt;&lt;P&gt;After a couple of days without success I have decided to wave the white flag and ask for help. I have calculate the monthly YTD portion for each record in my table. My aim is to allocate a monthly expense balance based on the YTD portion calculated for each transaction/record in the table below and I want to do this in the script. The result should be as below. I am struggling to achieve this in Qlik.&amp;nbsp; I can get to the YTD portion by customer by month but the problem is that that doesn't add to a integer as the previous months drop off. I think the only way to avoid this is to have a YTD portion for each month in a separate field as below.&amp;nbsp; I wonder if the "peek" or "previous" functions could achieve this? Any feedback will be appreciated. App attached. !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="151526" alt="Excel.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/151526_Excel.png" style="height: 271px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-portion-calculation-in-script-for-cost-allocation/m-p/1269173#M856429</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: YTD portion calculation (in script) for cost allocation</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-portion-calculation-in-script-for-cost-allocation/m-p/1269174#M856430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorted this, finally !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 23:25:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-portion-calculation-in-script-for-cost-allocation/m-p/1269174#M856430</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-13T23:25:16Z</dc:date>
    </item>
  </channel>
</rss>

