<?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: Data Modelling Concepts - Many-to-Many Relationship Qvd Generation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Concepts-Many-to-Many-Relationship-Qvd-Generation/m-p/1137172#M904953</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sir for you Reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But suppose, we have to derive some field Table1 and Table2 than Link approach will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AAA:&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;Key, Value&lt;/P&gt;&lt;P&gt;1111, 100&lt;/P&gt;&lt;P&gt;1111, 300&lt;/P&gt;&lt;P&gt;1112, 400&lt;/P&gt;&lt;P&gt;1113, 200&lt;/P&gt;&lt;P&gt;1113, 400&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left JOIN(AAA)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;Key, NewAmount&lt;/P&gt;&lt;P&gt;1111, 1000&lt;/P&gt;&lt;P&gt;1112, 4000&lt;/P&gt;&lt;P&gt;1113, 2000&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I have to use &lt;SPAN style="font-size: 13.3333px;"&gt;NewAmount Field to generate new Field and so on...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, this type of thing is not possible in Link Approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I don't want to handle such cases at Front end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jun 2016 09:18:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-06-29T09:18:07Z</dc:date>
    <item>
      <title>Data Modelling Concepts - Many-to-Many Relationship Qvd Generation</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Concepts-Many-to-Many-Relationship-Qvd-Generation/m-p/1137170#M904951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I started my journey with Qlikview 7 months back, I was not very strong in Data Modeling and other related concepts.&lt;/P&gt;&lt;P&gt;But slowly and steadily I have learnt the concepts and technicalities through Qlikview community (Thanks to everyone for that)&lt;/P&gt;&lt;P&gt;and by learning myself. But one thing that always bothered and challenged me is handling Many-to-Many, Many-to-one&lt;/P&gt;&lt;P&gt;and one-to-many relationships.&lt;/P&gt;&lt;P&gt;To use Left Join or Right is very easy between one-to-one Relationships. Use Left Join Between 2 tables and it will create a Qvd for you if you have written Store Command in the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the Pain Area is to handle Multiple Data, I mean Many-to-Many, One-to-Many and Many-to-One Relationships.&lt;/P&gt;&lt;P&gt;If I use Left Join between 2 tables which have multiple Data against single record than it will multiply the Data if I use Sum or Count.&lt;/P&gt;&lt;P&gt;Also, increases the Data Volume.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this thing can easily be solved by using Link Model Approach or by just Linking the 2 Tables using Key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, If I want the Data in one Table or One qvd than i have to use Join depending upon the scenario - may be Left Join,&lt;/P&gt;&lt;P&gt;Right Join or other Joins but that will multiply Data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think, everyone face this issue.&lt;/P&gt;&lt;P&gt;So, how to handle such scenarios?&lt;/P&gt;&lt;P&gt;Need Suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ApplyMap() Function will not work here as it will pick only the First Value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I have attached a QVW. I am trying on the solution but no luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be Appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modelling-Concepts-Many-to-Many-Relationship-Qvd-Generation/m-p/1137170#M904951</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Data Modelling Concepts - Many-to-Many Relationship Qvd Generation</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Concepts-Many-to-Many-Relationship-Qvd-Generation/m-p/1137171#M904952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's no single answer to something like this, the range of possible scenarios is very broad, and there are different requirements depending on the scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adding new rows with a many to many or one to many is not necessarily an error. Consider for example, loading sales order headers (one line per order) and then joining the sales detail (many per order), adding many records per order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And not all data models can usefully be collapsed into a single table - consider models requiring link tables or a canonical link tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the answer depends on what you are trying to achieve in the data model.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2016 08:43:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modelling-Concepts-Many-to-Many-Relationship-Qvd-Generation/m-p/1137171#M904952</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-06-29T08:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Data Modelling Concepts - Many-to-Many Relationship Qvd Generation</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Concepts-Many-to-Many-Relationship-Qvd-Generation/m-p/1137172#M904953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sir for you Reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But suppose, we have to derive some field Table1 and Table2 than Link approach will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AAA:&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;Key, Value&lt;/P&gt;&lt;P&gt;1111, 100&lt;/P&gt;&lt;P&gt;1111, 300&lt;/P&gt;&lt;P&gt;1112, 400&lt;/P&gt;&lt;P&gt;1113, 200&lt;/P&gt;&lt;P&gt;1113, 400&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left JOIN(AAA)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;Key, NewAmount&lt;/P&gt;&lt;P&gt;1111, 1000&lt;/P&gt;&lt;P&gt;1112, 4000&lt;/P&gt;&lt;P&gt;1113, 2000&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I have to use &lt;SPAN style="font-size: 13.3333px;"&gt;NewAmount Field to generate new Field and so on...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, this type of thing is not possible in Link Approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I don't want to handle such cases at Front end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2016 09:18:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modelling-Concepts-Many-to-Many-Relationship-Qvd-Generation/m-p/1137172#M904953</guid>
      <dc:creator />
      <dc:date>2016-06-29T09:18:07Z</dc:date>
    </item>
  </channel>
</rss>

