<?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 Connect  2 fact tables with intervals in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Connect-2-fact-tables-with-intervals/m-p/708816#M1056292</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I have 3 tables and not sure which way to build up the data model:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FACT table: mortgage loan data for 8 months is concatenated here:&lt;/P&gt;&lt;P&gt;• Contract ID,&lt;/P&gt;&lt;P&gt;• Person ID,&lt;/P&gt;&lt;P&gt;• Period (Jan, Feb. March...),&amp;nbsp;&amp;nbsp;&amp;nbsp; - the same contracts are listed multiple times for diff months&lt;/P&gt;&lt;P&gt;• Monthly installment – the amount payed by the debtor that month&lt;/P&gt;&lt;P&gt;• Remining capital that month&lt;/P&gt;&lt;P&gt;• Interest rate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Contract DIM table about the detailes of the loan contracts:&lt;/P&gt;&lt;P&gt;• Contract ID, • Person ID, • Period (Jan, Feb. March...),&lt;/P&gt;&lt;P&gt;• Start of contract&lt;/P&gt;&lt;P&gt;• End of contract&lt;/P&gt;&lt;P&gt;• Currency of contract&lt;/P&gt;&lt;P&gt;• Total Amount of the contract&lt;/P&gt;&lt;P&gt;• Type of contract, .. other descriptive value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fact 2. table about the non-performing contracts:&lt;/P&gt;&lt;P&gt;• Contract ID, • Person ID,&lt;/P&gt;&lt;P&gt;• Start of non-payment&lt;/P&gt;&lt;P&gt;• End of non-payment&lt;/P&gt;&lt;P&gt;• Not paid amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that between Fact table and Fact 2. table there is a many-to-many relationship. The same contract is listed for each month in Fact, and the same contract may have multiple entries in Fact 2 with different period and different not paid amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to calculate avarage interest rate per month separately for performing and non-performing contracts. I tried interval match between Fact and Fact2 (it works) but I do not know how&amp;nbsp; to differentiate between the performing and non – performing contracts in charts.&lt;/P&gt;&lt;P&gt;I am not sure how to connect Fact and Fact 2.&lt;/P&gt;&lt;P&gt;Please advise, thanks a lot!!! Enikö&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Oct 2014 21:43:24 GMT</pubDate>
    <dc:creator>kavicsgym</dc:creator>
    <dc:date>2014-10-12T21:43:24Z</dc:date>
    <item>
      <title>Connect  2 fact tables with intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Connect-2-fact-tables-with-intervals/m-p/708816#M1056292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I have 3 tables and not sure which way to build up the data model:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FACT table: mortgage loan data for 8 months is concatenated here:&lt;/P&gt;&lt;P&gt;• Contract ID,&lt;/P&gt;&lt;P&gt;• Person ID,&lt;/P&gt;&lt;P&gt;• Period (Jan, Feb. March...),&amp;nbsp;&amp;nbsp;&amp;nbsp; - the same contracts are listed multiple times for diff months&lt;/P&gt;&lt;P&gt;• Monthly installment – the amount payed by the debtor that month&lt;/P&gt;&lt;P&gt;• Remining capital that month&lt;/P&gt;&lt;P&gt;• Interest rate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Contract DIM table about the detailes of the loan contracts:&lt;/P&gt;&lt;P&gt;• Contract ID, • Person ID, • Period (Jan, Feb. March...),&lt;/P&gt;&lt;P&gt;• Start of contract&lt;/P&gt;&lt;P&gt;• End of contract&lt;/P&gt;&lt;P&gt;• Currency of contract&lt;/P&gt;&lt;P&gt;• Total Amount of the contract&lt;/P&gt;&lt;P&gt;• Type of contract, .. other descriptive value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fact 2. table about the non-performing contracts:&lt;/P&gt;&lt;P&gt;• Contract ID, • Person ID,&lt;/P&gt;&lt;P&gt;• Start of non-payment&lt;/P&gt;&lt;P&gt;• End of non-payment&lt;/P&gt;&lt;P&gt;• Not paid amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that between Fact table and Fact 2. table there is a many-to-many relationship. The same contract is listed for each month in Fact, and the same contract may have multiple entries in Fact 2 with different period and different not paid amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to calculate avarage interest rate per month separately for performing and non-performing contracts. I tried interval match between Fact and Fact2 (it works) but I do not know how&amp;nbsp; to differentiate between the performing and non – performing contracts in charts.&lt;/P&gt;&lt;P&gt;I am not sure how to connect Fact and Fact 2.&lt;/P&gt;&lt;P&gt;Please advise, thanks a lot!!! Enikö&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Oct 2014 21:43:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connect-2-fact-tables-with-intervals/m-p/708816#M1056292</guid>
      <dc:creator>kavicsgym</dc:creator>
      <dc:date>2014-10-12T21:43:24Z</dc:date>
    </item>
  </channel>
</rss>

