<?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: One to many Relationships in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/One-to-many-Relationships/m-p/928064#M650559</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dathu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;But I have 3 keys&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;Cleint_ID(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;%_CLIENT)&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;, Agency_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; (%_AGENCY)&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt; and Contact_ID &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(%_CONTACT) in the WorkOrder table. So, how can I join? Please see my attachment.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Aug 2015 14:21:50 GMT</pubDate>
    <dc:creator>sudhakar_budde</dc:creator>
    <dc:date>2015-08-14T14:21:50Z</dc:date>
    <item>
      <title>One to many Relationships</title>
      <link>https://community.qlik.com/t5/QlikView/One-to-many-Relationships/m-p/928062#M650555</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 table Client (where Client_type in (Clients, Agents and Contacts)). Primary Key is CL_ID.&lt;/P&gt;&lt;P&gt;I have another table WorkOrder with Cleint_ID, Agency_ID and Contact_ID. All these IDs join on Clients.CL_ID.&lt;/P&gt;&lt;P&gt;So I have derived Clients (CL_ID as %_CLIENT), Agency (%_AGENCY) and Contacts (%_CONTACT) from Client table and Joined with their respective &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Cleint_ID(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;%_CLIENT)&lt;/SPAN&gt;, Agency_ID&lt;SPAN style="font-size: 13.3333330154419px;"&gt; (%_AGENCY)&lt;/SPAN&gt; and Contact_ID &lt;SPAN style="font-size: 13.3333330154419px;"&gt;(%_CONTACT) in the WorkOrder table.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached table view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is : is this approach correct? What is the best way to reduce these tables instead of deriving more? How can I resolve this one-to-many relationship? Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 14:05:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-to-many-Relationships/m-p/928062#M650555</guid>
      <dc:creator>sudhakar_budde</dc:creator>
      <dc:date>2015-08-14T14:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: One to many Relationships</title>
      <link>https://community.qlik.com/t5/QlikView/One-to-many-Relationships/m-p/928063#M650557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead making 3 client&amp;nbsp; dimension tables , create one Client table with concatenate other client types like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clients:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Clients' as %Client_Type // this field differentiate type of client&lt;/P&gt;&lt;P&gt;From Clients.qvd (qvd) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate (Clients)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Load&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Agents' as %Client_Type // this field differentiate type of client&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;From Agents.qvd (qvd) ;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;concatenate (Clients)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Load&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Contacts&lt;/SPAN&gt;' as %Client_Type // this field differentiate type of client&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;From Contacts.qvd (qvd) ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 14:15:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-to-many-Relationships/m-p/928063#M650557</guid>
      <dc:creator />
      <dc:date>2015-08-14T14:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: One to many Relationships</title>
      <link>https://community.qlik.com/t5/QlikView/One-to-many-Relationships/m-p/928064#M650559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dathu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;But I have 3 keys&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;Cleint_ID(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;%_CLIENT)&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;, Agency_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; (%_AGENCY)&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt; and Contact_ID &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(%_CONTACT) in the WorkOrder table. So, how can I join? Please see my attachment.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 14:21:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-to-many-Relationships/m-p/928064#M650559</guid>
      <dc:creator>sudhakar_budde</dc:creator>
      <dc:date>2015-08-14T14:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: One to many Relationships</title>
      <link>https://community.qlik.com/t5/QlikView/One-to-many-Relationships/m-p/928065#M650560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You did a nice job of creating a star schema out of a compact database representation (all contacts of whatever type in a single table) And if it works, then it's correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A subsequent question you can ask yourself: is this an optimal solution? Is performance hampered by the extra hops and should you merge the fields you really need into the workorder table and throw away the others (throwing away what you don't really need is always a good thing)? Is there a massive amount of data present in the document, or is size rather limited and are we optimizing for fun while getting no real improvements...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A good read by HIC: &lt;A href="https://community.qlik.com/qlik-blogpost/4039"&gt;A Myth about the Number of Hops&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Another one by Miguel: &lt;A href="https://community.qlik.com/qlik-blogpost/3632"&gt;The Importance Of Being Distinct&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And another more philosophical post by HIC about what to do when: &lt;A href="https://community.qlik.com/qlik-blogpost/3398"&gt;Data Modelling: Clarity vs. Speed&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 14:28:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-to-many-Relationships/m-p/928065#M650560</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-08-14T14:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: One to many Relationships</title>
      <link>https://community.qlik.com/t5/QlikView/One-to-many-Relationships/m-p/928066#M650561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can rename the field names make into one common field between Fact &amp;amp; Dimension. I believe you have split your Fact table as well. Can you please post sample data with small no if rows ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 15:43:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-to-many-Relationships/m-p/928066#M650561</guid>
      <dc:creator />
      <dc:date>2015-08-14T15:43:11Z</dc:date>
    </item>
  </channel>
</rss>

