<?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 Data Modeling 3 tables with missing records in key fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-Modeling-3-tables-with-missing-records-in-key-fields/m-p/375971#M702475</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 have searched the community and read the best practice documents but am still unsure of how to progress - any help welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 3 tables that I need to associate. They represent different levels of detail:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Jobs - mainly dimensional information but will want to use this table as the source for unique counts etc&lt;/LI&gt;&lt;LI&gt;Operations - combination of dimensions and metrics&lt;/LI&gt;&lt;LI&gt;Materials - combination of dimensions and metrics&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Each record in Jobs can relate to many in Operations - all records in Operations relate back to a record in Jobs (Association is via job number and is simple and works)&lt;/LI&gt;&lt;LI&gt;Each record in Operations may relate to many in Materials (Association is via job number and operation number. Results in exclusion of the records in the last bullet point)&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Some records in Operations do not relate to records in Materials (this has no impact on my current model but means I can't change the order of associations between the tables)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Some records in Materials do not relate to records in Operations but do relate to records in Jobs e.g. these are unplanned use of materials in our system - these are low level but important to the business. (Current model excludes these records since operation number is null)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have considered using a link table between Jobs and the Operations/Materials table but believe I would lose the assocation I need between Operations and Materials.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current thinking is to create records in the Operations table for those missing in the Materials table so that the association works. I would do this by concatenating a table of Materials where operation number is null with the Operations table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a better way of doing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jul 2012 14:02:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-07-31T14:02:44Z</dc:date>
    <item>
      <title>Data Modeling 3 tables with missing records in key fields</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modeling-3-tables-with-missing-records-in-key-fields/m-p/375971#M702475</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 have searched the community and read the best practice documents but am still unsure of how to progress - any help welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 3 tables that I need to associate. They represent different levels of detail:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Jobs - mainly dimensional information but will want to use this table as the source for unique counts etc&lt;/LI&gt;&lt;LI&gt;Operations - combination of dimensions and metrics&lt;/LI&gt;&lt;LI&gt;Materials - combination of dimensions and metrics&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Each record in Jobs can relate to many in Operations - all records in Operations relate back to a record in Jobs (Association is via job number and is simple and works)&lt;/LI&gt;&lt;LI&gt;Each record in Operations may relate to many in Materials (Association is via job number and operation number. Results in exclusion of the records in the last bullet point)&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Some records in Operations do not relate to records in Materials (this has no impact on my current model but means I can't change the order of associations between the tables)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Some records in Materials do not relate to records in Operations but do relate to records in Jobs e.g. these are unplanned use of materials in our system - these are low level but important to the business. (Current model excludes these records since operation number is null)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have considered using a link table between Jobs and the Operations/Materials table but believe I would lose the assocation I need between Operations and Materials.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current thinking is to create records in the Operations table for those missing in the Materials table so that the association works. I would do this by concatenating a table of Materials where operation number is null with the Operations table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a better way of doing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 14:02:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modeling-3-tables-with-missing-records-in-key-fields/m-p/375971#M702475</guid>
      <dc:creator />
      <dc:date>2012-07-31T14:02:44Z</dc:date>
    </item>
  </channel>
</rss>

