<?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 Relational Modeling problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Relational-Modeling-problem/m-p/405176#M150769</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sure a similar question has been asked before, but I'm uncertain how to phrase the search to find an answer..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my problem.. &lt;/P&gt;&lt;P&gt;My database is relational. It contains four basic entities: Account, Customer, Officer, Relationship.&lt;/P&gt;&lt;P&gt;A Customer may have multiple Accounts, and an Account may have multiple Customers (primary and secondary account holders, authorized users, etc). For this reason, a mapping table is required (CustomerAccountMap).&lt;/P&gt;&lt;P&gt;A Relationship is a group of Customers. A Customer may belong to more than one Relationship. So there is another mapping table here (CustomerRelationshipMap).&lt;/P&gt;&lt;P&gt;Finally, for the last bit of complication, each entity has an officer assigned to it as the person responsible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some of the common questions that require answers are:&lt;/P&gt;&lt;P&gt;-How many Customers does an Officer have? &lt;/P&gt;&lt;P&gt;-How many Relationships is an Officer responsible for?&lt;/P&gt;&lt;P&gt;-What is an officers Accounts per Relationship ratio?&lt;/P&gt;&lt;P&gt;-What is a Customer's total balance for all accounts that they're primary?&lt;/P&gt;&lt;P&gt;-What's the total balance for a Relationship, including all customers and their accounts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a visual representation of the relational model:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="35727" class="jive-image-thumbnail jive-image" onclick="" alt="SimpleModel.PNG" src="https://community.qlik.com/legacyfs/online/35727_SimpleModel.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is how can I model this in QlikView to answer those questions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been able to model it such that I can answer questions about Accounts and Customers, or Accounts and Relationships. However if I try to bring Officers in I can't figure out how to connect it to any more than a single entity without the model destabilizing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to answer all of these questions in a single model?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Mar 2013 20:10:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-03-28T20:10:08Z</dc:date>
    <item>
      <title>Relational Modeling problem</title>
      <link>https://community.qlik.com/t5/QlikView/Relational-Modeling-problem/m-p/405176#M150769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sure a similar question has been asked before, but I'm uncertain how to phrase the search to find an answer..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my problem.. &lt;/P&gt;&lt;P&gt;My database is relational. It contains four basic entities: Account, Customer, Officer, Relationship.&lt;/P&gt;&lt;P&gt;A Customer may have multiple Accounts, and an Account may have multiple Customers (primary and secondary account holders, authorized users, etc). For this reason, a mapping table is required (CustomerAccountMap).&lt;/P&gt;&lt;P&gt;A Relationship is a group of Customers. A Customer may belong to more than one Relationship. So there is another mapping table here (CustomerRelationshipMap).&lt;/P&gt;&lt;P&gt;Finally, for the last bit of complication, each entity has an officer assigned to it as the person responsible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some of the common questions that require answers are:&lt;/P&gt;&lt;P&gt;-How many Customers does an Officer have? &lt;/P&gt;&lt;P&gt;-How many Relationships is an Officer responsible for?&lt;/P&gt;&lt;P&gt;-What is an officers Accounts per Relationship ratio?&lt;/P&gt;&lt;P&gt;-What is a Customer's total balance for all accounts that they're primary?&lt;/P&gt;&lt;P&gt;-What's the total balance for a Relationship, including all customers and their accounts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a visual representation of the relational model:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="35727" class="jive-image-thumbnail jive-image" onclick="" alt="SimpleModel.PNG" src="https://community.qlik.com/legacyfs/online/35727_SimpleModel.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is how can I model this in QlikView to answer those questions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been able to model it such that I can answer questions about Accounts and Customers, or Accounts and Relationships. However if I try to bring Officers in I can't figure out how to connect it to any more than a single entity without the model destabilizing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to answer all of these questions in a single model?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2013 20:10:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relational-Modeling-problem/m-p/405176#M150769</guid>
      <dc:creator />
      <dc:date>2013-03-28T20:10:08Z</dc:date>
    </item>
  </channel>
</rss>

