<?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: How to make this calculation? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-make-this-calculation/m-p/457695#M170903</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Check with this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD Account, Date(MonthStart(Date#(YearMonth,'YYYY/MM')), 'YYYY/MM') AS YearMonth, Amount INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Account, YearMonth, Amount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11111, 2012/03, 100,00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22222, 2012/05, 99,00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11111, 2012/04, 120,00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22222, 2012/08, 125,00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11111, 2012/11, 90,00&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outer Join&lt;/P&gt;&lt;P&gt;LOAD Account , Date(MonthStart(MinDate, IterNo() - 1), 'YYYY/MM') AS YearMonth While Date(MonthStart(MinDate, IterNo() - 1), 'YYYY/MM') &amp;lt;= MaxDate;&lt;/P&gt;&lt;P&gt;Load Account, Min(YearMonth) AS MinDate, Max(YearMonth) As MaxDate&lt;/P&gt;&lt;P&gt;Resident Table1&lt;/P&gt;&lt;P&gt;Group by Account;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CalcTable:&lt;/P&gt;&lt;P&gt;LOAD *, Alt(Amount, Peek(CalcAmount)) AS CalcAmount;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;Resident&lt;/P&gt;&lt;P&gt;Table1&lt;/P&gt;&lt;P&gt;Order by Account, YearMonth;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Table1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Dec 2012 20:45:05 GMT</pubDate>
    <dc:creator>CELAMBARASAN</dc:creator>
    <dc:date>2012-12-20T20:45:05Z</dc:date>
    <item>
      <title>How to make this calculation?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-this-calculation/m-p/457692#M170900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a big problem and I bet someone can give me a hint for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to get the balance of each month for every account of the GL system.&lt;/P&gt;&lt;P&gt;For accounts that have entries every month, I need just to take the older entry of each month that has the balance - that´s working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is if the account has no movimentation for some months or had no more movimentation since a couple of months, but has amount yet.&lt;/P&gt;&lt;P&gt;In the ERP that I´m working, there is no such lauchs for this months, and I need to create in Qlik View a way to show this amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the acount 11111 had only entries in months 03, 04 and 11, I need to get a way to create fakes entries in the others months, or some like that. &lt;/P&gt;&lt;P&gt;So if the user wanna know the balance for july/2012, I´ll show him the last amount available, that in the example below, should be 120,00&lt;/P&gt;&lt;P&gt;But if the user wanna know the balance for december/2012, I´ll show him the last amount available, that in the example below, should be 90,00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Acount&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; year/month/day&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; amount&lt;/P&gt;&lt;P&gt;11111&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012/03&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100,00&lt;/P&gt;&lt;P&gt;11111&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012/04&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 120,00&lt;/P&gt;&lt;P&gt;11111&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012/11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 90,00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 16:26:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-this-calculation/m-p/457692#M170900</guid>
      <dc:creator>rcandeo</dc:creator>
      <dc:date>2012-12-20T16:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to make this calculation?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-this-calculation/m-p/457693#M170901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This you need to be in chart or in load script?&lt;/P&gt;&lt;P&gt;Chart means use FirstSortedValue&lt;/P&gt;&lt;P&gt;FirstSortedValue({&amp;lt;DateField={"&amp;lt;=$(=Max(DateField))"}&amp;gt;} amount, -Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 17:13:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-this-calculation/m-p/457693#M170901</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-12-20T17:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to make this calculation?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-this-calculation/m-p/457694#M170902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;unfortunatelly I need it in script&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 17:45:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-this-calculation/m-p/457694#M170902</guid>
      <dc:creator>rcandeo</dc:creator>
      <dc:date>2012-12-20T17:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to make this calculation?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-this-calculation/m-p/457695#M170903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Check with this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD Account, Date(MonthStart(Date#(YearMonth,'YYYY/MM')), 'YYYY/MM') AS YearMonth, Amount INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Account, YearMonth, Amount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11111, 2012/03, 100,00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22222, 2012/05, 99,00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11111, 2012/04, 120,00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22222, 2012/08, 125,00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11111, 2012/11, 90,00&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outer Join&lt;/P&gt;&lt;P&gt;LOAD Account , Date(MonthStart(MinDate, IterNo() - 1), 'YYYY/MM') AS YearMonth While Date(MonthStart(MinDate, IterNo() - 1), 'YYYY/MM') &amp;lt;= MaxDate;&lt;/P&gt;&lt;P&gt;Load Account, Min(YearMonth) AS MinDate, Max(YearMonth) As MaxDate&lt;/P&gt;&lt;P&gt;Resident Table1&lt;/P&gt;&lt;P&gt;Group by Account;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CalcTable:&lt;/P&gt;&lt;P&gt;LOAD *, Alt(Amount, Peek(CalcAmount)) AS CalcAmount;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;Resident&lt;/P&gt;&lt;P&gt;Table1&lt;/P&gt;&lt;P&gt;Order by Account, YearMonth;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Table1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 20:45:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-this-calculation/m-p/457695#M170903</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-12-20T20:45:05Z</dc:date>
    </item>
  </channel>
</rss>

