<?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: Advice needed for joining tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Advice-needed-for-joining-tables/m-p/276256#M103069</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so I have decided to adjust our way of analysing project/resource info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am going to try looking at availability only of those resources who have assignments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which means I can link both setsof time slices off the same assignment table (see attached QVW and relationship)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been looking at this far too long now and I'm slowly startin to loose any logic when it comes to QlikView scripting - combined with the not having used the tool for several months..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One set of slices links to the assignmentID&lt;/P&gt;&lt;P&gt;One ser of slices links to the resourceID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;both have a DATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to plot graphs etc comparing both sets of slices on the same time-scale, as well as have year and month list boxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thinking of a concatenated key of assignment and resource, but not 100% sure how I can combine the slices to get that info&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any further guidance?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks once again...&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Sep 2011 22:58:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-21T22:58:17Z</dc:date>
    <item>
      <title>Advice needed for joining tables</title>
      <link>https://community.qlik.com/t5/QlikView/Advice-needed-for-joining-tables/m-p/276250#M103063</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;I'm having a spot of bother trying to work out how to join my project related tables in my QVW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have essentially 3 core tables in QV-talk&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROJECT&lt;/P&gt;&lt;P&gt;TASK_ASSIGNMENT&lt;/P&gt;&lt;P&gt;TEAM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now,&amp;nbsp; a PROJECT has a TEAM associated with it.&amp;nbsp; This TEAM will be one or more resources.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a PROJECT will also have one or more TASK ASSIGNMENTS&lt;/P&gt;&lt;P&gt;which represent resources assigned to tasks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The resources on assignments will all be in the TEAM.&lt;/P&gt;&lt;P&gt;however, not all TEAM members will be assigned to tasks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to somehow link the TEAM to the TASK_ASSGINMENT table so that if I pick a resource on the team I can see the Tasks they are assigned to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get a synthetic key when I join these together.&lt;/P&gt;&lt;P&gt;I have always thought that synthetic keys are best avoided - is this the case.&lt;/P&gt;&lt;P&gt;I attach a word document showing my structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any advice...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 16:09:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advice-needed-for-joining-tables/m-p/276250#M103063</guid>
      <dc:creator />
      <dc:date>2011-09-20T16:09:54Z</dc:date>
    </item>
    <item>
      <title>Advice needed for joining tables</title>
      <link>https://community.qlik.com/t5/QlikView/Advice-needed-for-joining-tables/m-p/276251#M103064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;in my experience your only one syn is ok, u have to avoid synthetic key if u have a lot of them and the application become heavy and slow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when i have from 1 to 3 syn key i do anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C u,&lt;/P&gt;&lt;P&gt;Stefano.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 16:31:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advice-needed-for-joining-tables/m-p/276251#M103064</guid>
      <dc:creator />
      <dc:date>2011-09-20T16:31:16Z</dc:date>
    </item>
    <item>
      <title>Advice needed for joining tables</title>
      <link>https://community.qlik.com/t5/QlikView/Advice-needed-for-joining-tables/m-p/276252#M103065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If there is no other way to combine the tables in your data model to get a big Fact table you can use a link table to avoid synthetic key&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;Get all the possible list of project ids and resource ids into one table &lt;/P&gt;&lt;P&gt;say the name PrdIdResIDTable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LinkTable:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;ProjectId,&lt;/P&gt;&lt;P&gt;ResourceID,&lt;/P&gt;&lt;P&gt;Autonumber(ProjectId &amp;amp;'-'&amp;amp;ResourceID) as LinkKey&lt;/P&gt;&lt;P&gt;Resident PrdIdResIDTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Team:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;Autonumber(ProjectId &amp;amp;'-'&amp;amp;ResourceID) as LinkKey&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;(Remember not to include ProjectID and resourceID fields in the individual fact table)&lt;/P&gt;&lt;P&gt;create the other tables with the LinkKey field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 18:12:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advice-needed-for-joining-tables/m-p/276252#M103065</guid>
      <dc:creator />
      <dc:date>2011-09-20T18:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Advice needed for joining tables</title>
      <link>https://community.qlik.com/t5/QlikView/Advice-needed-for-joining-tables/m-p/276253#M103066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THanks for your assistance.&lt;/P&gt;&lt;P&gt;I trid making a link table but it seemed to make the results go a bit funny.&lt;/P&gt;&lt;P&gt;Keeping the Synthetic key seemd to allow it to work as planned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however I now have a new issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Off theeach of the two tables that are causing the synthetic key I have additional tables which contain time-sliceddata from the database, with common fields - thus creating a second synthetic key AARRGHH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need there to be a single&amp;nbsp; date 'island' that will control each of these two independant slices.&lt;/P&gt;&lt;P&gt;Its causing a circular/loosley coupled reference which is totally ruining the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cant think of a way of doing this.&lt;/P&gt;&lt;P&gt;I know it can be done somehow but havent got a clue.&lt;/P&gt;&lt;P&gt;the first synthetic key works well.&lt;/P&gt;&lt;P&gt;I could possibly change the date field names from the two time-sliced tables (see new attached structure and qvw on original post ), and then link them in a date-island, but I think that would just go and create the same circular reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could combine the time-sliced datainto one table, but some of the time-slices need to link to resource records and some need to link to assignment records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest a way of acheiving this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 18:51:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advice-needed-for-joining-tables/m-p/276253#M103066</guid>
      <dc:creator />
      <dc:date>2011-09-21T18:51:37Z</dc:date>
    </item>
    <item>
      <title>Advice needed for joining tables</title>
      <link>https://community.qlik.com/t5/QlikView/Advice-needed-for-joining-tables/m-p/276254#M103067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would load the two Slice-Dates as two Slice_Dates, for ex.:&lt;/P&gt;&lt;P&gt;ACTS_ETCS:&lt;/P&gt;&lt;P&gt;LOAD ASSIGNMENTID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MONTH(SLICE_DATE) as ASSIGNMENT_MONTH,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YEAR(SLICE_DATE) as ASSIGNMENT_YEAR,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QUARTERNAME(SLICE_DATE) as ASSIGNMENT_QUARTER,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SLICE_DATE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as ASSIGNMENT_DATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SLICE_TYPE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as ASSIGNMENT_TYPE, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HOURS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as ASSIGNMENT_HOURS&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now rename the fields of AVAILABILITY as well. This should bring you out of this mess. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HtH&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 19:22:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advice-needed-for-joining-tables/m-p/276254#M103067</guid>
      <dc:creator />
      <dc:date>2011-09-21T19:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Advice needed for joining tables</title>
      <link>https://community.qlik.com/t5/QlikView/Advice-needed-for-joining-tables/m-p/276255#M103068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your time Roland.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I rename the slice attributes, how can I then compare then using one commond date island.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ultimately, I would like to produce bar charts showing total availability, total actuals ans total ETC by week/month etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so where a resource exists in the team, but has no assignments, I would see availability values for the weeks/months, but no actuals/etcs (which come from the assignment time-slices)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 19:33:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advice-needed-for-joining-tables/m-p/276255#M103068</guid>
      <dc:creator />
      <dc:date>2011-09-21T19:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Advice needed for joining tables</title>
      <link>https://community.qlik.com/t5/QlikView/Advice-needed-for-joining-tables/m-p/276256#M103069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so I have decided to adjust our way of analysing project/resource info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am going to try looking at availability only of those resources who have assignments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which means I can link both setsof time slices off the same assignment table (see attached QVW and relationship)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been looking at this far too long now and I'm slowly startin to loose any logic when it comes to QlikView scripting - combined with the not having used the tool for several months..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One set of slices links to the assignmentID&lt;/P&gt;&lt;P&gt;One ser of slices links to the resourceID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;both have a DATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to plot graphs etc comparing both sets of slices on the same time-scale, as well as have year and month list boxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thinking of a concatenated key of assignment and resource, but not 100% sure how I can combine the slices to get that info&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any further guidance?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks once again...&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 22:58:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advice-needed-for-joining-tables/m-p/276256#M103069</guid>
      <dc:creator />
      <dc:date>2011-09-21T22:58:17Z</dc:date>
    </item>
  </channel>
</rss>

