<?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: Expression based on summation of past months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-based-on-summation-of-past-months/m-p/1244133#M394740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you idea is right, but I would not join it back to your main table. You can rather use the &lt;A href="https://community.qlik.com/qlik-blogpost/4531"&gt;The As-Of Table&lt;/A&gt;‌ here which would keep your data model more proficient &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Feb 2017 12:47:28 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-02-09T12:47:28Z</dc:date>
    <item>
      <title>Expression based on summation of past months</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-based-on-summation-of-past-months/m-p/1244132#M394739</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 having difficult making an expression a little cleaner, and easy to maintain.&amp;nbsp; I have an excel doc I'm replicating in QlikView that takes a money value for a month, and spreads it over a year, and then shows for that month how much is being earned in the month - it's not a true earned premium calculation though....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, for any given month you will take the premium of the same month last year, and divide it by 24.&amp;nbsp; You will then take the premium for the current month and divide by 24.&amp;nbsp; You will then take all the months between, but this time divided by 12, and then add them together to give the EP figure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the application I have created left joins in the script to create the prior month values, and then in the EP expression I have done the calcs to bring the value together,&amp;nbsp; The value is correct, but I'm certain there is a cleaner way to do in without the aliasing joins and the clunky expression.&amp;nbsp; Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 12:40:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-based-on-summation-of-past-months/m-p/1244132#M394739</guid>
      <dc:creator />
      <dc:date>2017-02-09T12:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Expression based on summation of past months</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-based-on-summation-of-past-months/m-p/1244133#M394740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you idea is right, but I would not join it back to your main table. You can rather use the &lt;A href="https://community.qlik.com/qlik-blogpost/4531"&gt;The As-Of Table&lt;/A&gt;‌ here which would keep your data model more proficient &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 12:47:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-based-on-summation-of-past-months/m-p/1244133#M394740</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-09T12:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Expression based on summation of past months</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-based-on-summation-of-past-months/m-p/1244134#M394741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ah thanks&amp;nbsp; - I'll check that out. i thought there may be some mixture of fun functions to use .. you know .. ones I don't know about, that might build the calc on the fly rather than having to sort it in the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 09:59:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-based-on-summation-of-past-months/m-p/1244134#M394741</guid>
      <dc:creator />
      <dc:date>2017-02-10T09:59:11Z</dc:date>
    </item>
  </channel>
</rss>

