<?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 How to model multiple associations between tables in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-model-multiple-associations-between-tables/m-p/1194521#M22512</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would think this question has been asked many times before, but I have looked for advice regarding modelling multiple associations between the same datasets, and haven't really found what I'm looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A really simple example is the following. Assume I have a Person, with two addresses, a home address and a work address, both linking to an address table.&lt;/P&gt;&lt;P&gt;Person:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;person_id&lt;/LI&gt;&lt;LI&gt;person_name&lt;/LI&gt;&lt;LI&gt;home_address_id&lt;/LI&gt;&lt;LI&gt;work_address_id&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Address:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;address_id&lt;/LI&gt;&lt;LI&gt;streetname&lt;/LI&gt;&lt;LI&gt;country_id&lt;/LI&gt;&lt;LI&gt;geolocation&lt;/LI&gt;&lt;LI&gt;...&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I model this. There are basically two associations between the same tables. Most suggestions I have read somehow summarize as joining the two tables immediately, and copying some data from the address to the person. For example, joining so that you have:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;person_id&lt;/LI&gt;&lt;LI&gt;person_name&lt;/LI&gt;&lt;LI&gt;home_street&lt;/LI&gt;&lt;LI&gt;work_street&lt;/LI&gt;&lt;LI&gt;...&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That works if address is something I only need the streetname for, but in general that doesn't get me far. I want to follow associations to country and beyond if needed in my dashboards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A more complex example of fundamentally the same issue is the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A project consists of multiple phases.&lt;/P&gt;&lt;P&gt;Project:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;project_name&lt;/LI&gt;&lt;LI&gt;project_id&lt;/LI&gt;&lt;LI&gt;formal_kickoff_phase&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Projectphase:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;project_id&lt;/LI&gt;&lt;LI&gt;phase_name&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here two, there are multiple links: a project has many phases, and there is a specific link to one of those phases. Agreed that in this example, there could also have been a boolean "kickoff" in projectphase, but you don't always control the source datasets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question is twofold:&lt;/P&gt;&lt;P&gt;1) How do I model multiple associations such as these in qliksense?&lt;/P&gt;&lt;P&gt;2) Are there any examples on how such multiple relations between two tables can be visualized? For example, how do you indicate which relation to follow when an element is selected?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Yves&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Oct 2016 11:54:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-10-26T11:54:37Z</dc:date>
    <item>
      <title>How to model multiple associations between tables</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-model-multiple-associations-between-tables/m-p/1194521#M22512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would think this question has been asked many times before, but I have looked for advice regarding modelling multiple associations between the same datasets, and haven't really found what I'm looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A really simple example is the following. Assume I have a Person, with two addresses, a home address and a work address, both linking to an address table.&lt;/P&gt;&lt;P&gt;Person:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;person_id&lt;/LI&gt;&lt;LI&gt;person_name&lt;/LI&gt;&lt;LI&gt;home_address_id&lt;/LI&gt;&lt;LI&gt;work_address_id&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Address:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;address_id&lt;/LI&gt;&lt;LI&gt;streetname&lt;/LI&gt;&lt;LI&gt;country_id&lt;/LI&gt;&lt;LI&gt;geolocation&lt;/LI&gt;&lt;LI&gt;...&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I model this. There are basically two associations between the same tables. Most suggestions I have read somehow summarize as joining the two tables immediately, and copying some data from the address to the person. For example, joining so that you have:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;person_id&lt;/LI&gt;&lt;LI&gt;person_name&lt;/LI&gt;&lt;LI&gt;home_street&lt;/LI&gt;&lt;LI&gt;work_street&lt;/LI&gt;&lt;LI&gt;...&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That works if address is something I only need the streetname for, but in general that doesn't get me far. I want to follow associations to country and beyond if needed in my dashboards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A more complex example of fundamentally the same issue is the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A project consists of multiple phases.&lt;/P&gt;&lt;P&gt;Project:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;project_name&lt;/LI&gt;&lt;LI&gt;project_id&lt;/LI&gt;&lt;LI&gt;formal_kickoff_phase&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Projectphase:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;project_id&lt;/LI&gt;&lt;LI&gt;phase_name&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here two, there are multiple links: a project has many phases, and there is a specific link to one of those phases. Agreed that in this example, there could also have been a boolean "kickoff" in projectphase, but you don't always control the source datasets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question is twofold:&lt;/P&gt;&lt;P&gt;1) How do I model multiple associations such as these in qliksense?&lt;/P&gt;&lt;P&gt;2) Are there any examples on how such multiple relations between two tables can be visualized? For example, how do you indicate which relation to follow when an element is selected?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Yves&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 11:54:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-model-multiple-associations-between-tables/m-p/1194521#M22512</guid>
      <dc:creator />
      <dc:date>2016-10-26T11:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to model multiple associations between tables</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-model-multiple-associations-between-tables/m-p/1194522#M22513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I too am having a problem with this. The simplest example is a trip that has an origin and a destination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Airports:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;airport_code&lt;/LI&gt;&lt;LI&gt;latitude&lt;/LI&gt;&lt;LI&gt;longitude&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flights_timetable:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;airport_origin_code&lt;/LI&gt;&lt;LI&gt;airport_destination_code&lt;/LI&gt;&lt;LI&gt;etc...&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlik Sense only agrees to associate the airport code with one of the fields - either the origin or the destination, but not both. How do I work around this, for example, to build an element that filters my flights on a graph by origin and destination?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 17:58:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-model-multiple-associations-between-tables/m-p/1194522#M22513</guid>
      <dc:creator />
      <dc:date>2017-06-14T17:58:28Z</dc:date>
    </item>
  </channel>
</rss>

