<?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: Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem/m-p/379235#M702789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the mistake I made. When creating my FullTable I only needed my years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FullTable:&lt;/P&gt;&lt;P&gt;Join (Data) IntervalMatch (Date) Load&lt;/P&gt;&lt;P&gt;distinct(year(Start)),End &lt;/P&gt;&lt;P&gt;Resident Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the reload I was able to calculate my totals the way I wanted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Aug 2012 09:17:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-24T09:17:16Z</dc:date>
    <item>
      <title>Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Problem/m-p/379234#M702788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having a small issue which I don't know how to solve. I have a table containing our sold Machines and one table with our invoices. I created one fact out of these two. Now I need to calculate the redemption of my machines over time. The table simplified looks like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *, recno() as ID INLINE [&lt;/P&gt;&lt;P&gt;Start, End, SerialNo, PriceSold&lt;/P&gt;&lt;P&gt;15/01/2011, 15/01/2016, AAAA, 18000&lt;/P&gt;&lt;P&gt;08/08/2011, 08/08/2016, BBBB, 36000&lt;/P&gt;&lt;P&gt;03/04/2012, 03/04/2017, CCCC, 72000&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every machine has a 60month redemption period (PriceSold/60 will give me how much the machines redemption is each month).&lt;/P&gt;&lt;P&gt;I want to achieve the total redeption of each machine on a yearly base.&lt;/P&gt;&lt;P&gt;Year 2011: 6600€ (Machine AAAA: 3600, Machine BBBB: 3000)&lt;/P&gt;&lt;P&gt;Year 2012: 21600€(Machine AAAA: 3600, Machine BBBB: 7200, Machine CCCC: 10800€)&lt;/P&gt;&lt;P&gt;Year 2013: 25200€(Machine AAAA: 3600, Machine BBBB: 7200, Machine CCCC: 14400€)&lt;/P&gt;&lt;P&gt;Year 2014: 25200€&lt;/P&gt;&lt;P&gt;Year 2015: 25200€&lt;/P&gt;&lt;P&gt;Year 2016: 19500€(Machine AAAA: 300, Machine BBBB: 4800, Machine CCCC: 14400€)&lt;/P&gt;&lt;P&gt;Year 2017: 3600€ (only machine CCCC is still in this period)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already created a temp calendar which generated all possible dates in between:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vMinDate = num(Date(15/01/2011))&lt;/P&gt;&lt;P&gt;Let vMaxDate = num(Date(03/04/2017))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar:&lt;/P&gt;&lt;P&gt;Load Date($(vMinDate)+RecNo()-1) as Date Autogenerate $(vMaxDate) - $(vMinDate) +1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FullTable:&lt;/P&gt;&lt;P&gt;Join (Data) IntervalMatch (Date) Load&lt;/P&gt;&lt;P&gt;Start,End &lt;/P&gt;&lt;P&gt;Resident Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above actions don't give me the result I want. Could someone help me out with this one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need more information, or something isn't clear, just ask me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--- Edit:&lt;/P&gt;&lt;P&gt;I found the solution to my problem. I just needed to do a distinct on the year of the startdate when joining.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2012 15:01:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem/m-p/379234#M702788</guid>
      <dc:creator />
      <dc:date>2012-08-20T15:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Problem/m-p/379235#M702789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the mistake I made. When creating my FullTable I only needed my years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FullTable:&lt;/P&gt;&lt;P&gt;Join (Data) IntervalMatch (Date) Load&lt;/P&gt;&lt;P&gt;distinct(year(Start)),End &lt;/P&gt;&lt;P&gt;Resident Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the reload I was able to calculate my totals the way I wanted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2012 09:17:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem/m-p/379235#M702789</guid>
      <dc:creator />
      <dc:date>2012-08-24T09:17:16Z</dc:date>
    </item>
  </channel>
</rss>

