<?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 Link filter without loop? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Link-filter-without-loop/m-p/2473222#M99862</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Do you have any suggestions on how to match two dimensions without direct linking?&lt;BR /&gt;&lt;BR /&gt;Details:&amp;nbsp;&lt;BR /&gt;I have two tables with "Department", and would like &lt;FONT face="courier new,courier"&gt;&lt;EM&gt;department.Organization&lt;/EM&gt;&lt;/FONT&gt; to be filtered according to &lt;FONT face="courier new,courier"&gt;&lt;EM&gt;department.StaffingPlans&lt;/EM&gt;&lt;/FONT&gt;, so I can compare trends using the same filter.&amp;nbsp;&lt;BR /&gt;Since I already have them both linked to the master calendar a direct link &lt;FONT color="#999999"&gt;(i.e common &lt;EM&gt;&lt;FONT face="courier new,courier"&gt;dept.Link&lt;/FONT&gt;&lt;/EM&gt;&amp;nbsp;in both tables)&lt;/FONT&gt; will result in a loop warning and that one table is "loosely coupled". I'd prefer to be able to trust the results.&amp;nbsp;&lt;BR /&gt;&lt;FONT color="#808080"&gt;(I don't think going through a common department-period will solve the issue, as I am already using a "person-period" and one person can relate to different departments over time)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Is there any best practice way to solve such situations? I guess this has been a situation in many previous cases, but I was unable to find a good explanation on how to approach it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jul 2024 12:25:48 GMT</pubDate>
    <dc:creator>oddgeir</dc:creator>
    <dc:date>2024-07-26T12:25:48Z</dc:date>
    <item>
      <title>Link filter without loop?</title>
      <link>https://community.qlik.com/t5/App-Development/Link-filter-without-loop/m-p/2473222#M99862</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Do you have any suggestions on how to match two dimensions without direct linking?&lt;BR /&gt;&lt;BR /&gt;Details:&amp;nbsp;&lt;BR /&gt;I have two tables with "Department", and would like &lt;FONT face="courier new,courier"&gt;&lt;EM&gt;department.Organization&lt;/EM&gt;&lt;/FONT&gt; to be filtered according to &lt;FONT face="courier new,courier"&gt;&lt;EM&gt;department.StaffingPlans&lt;/EM&gt;&lt;/FONT&gt;, so I can compare trends using the same filter.&amp;nbsp;&lt;BR /&gt;Since I already have them both linked to the master calendar a direct link &lt;FONT color="#999999"&gt;(i.e common &lt;EM&gt;&lt;FONT face="courier new,courier"&gt;dept.Link&lt;/FONT&gt;&lt;/EM&gt;&amp;nbsp;in both tables)&lt;/FONT&gt; will result in a loop warning and that one table is "loosely coupled". I'd prefer to be able to trust the results.&amp;nbsp;&lt;BR /&gt;&lt;FONT color="#808080"&gt;(I don't think going through a common department-period will solve the issue, as I am already using a "person-period" and one person can relate to different departments over time)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Is there any best practice way to solve such situations? I guess this has been a situation in many previous cases, but I was unable to find a good explanation on how to approach it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 12:25:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Link-filter-without-loop/m-p/2473222#M99862</guid>
      <dc:creator>oddgeir</dc:creator>
      <dc:date>2024-07-26T12:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Link filter without loop?</title>
      <link>https://community.qlik.com/t5/App-Development/Link-filter-without-loop/m-p/2473619#M99914</link>
      <description>&lt;P&gt;So I assume you mean that both tables are linked with a master calender, on for example a date field. When you also want to link the tables to each other with the department field, you need to create a composite key and a bridge/link table. The composite key will consist of both primary key fields: date &amp;amp; '-' &amp;amp; department. You create this field in both tables. Then you can create a link table to the master calendar. The link table will need to contain the composite key and the date field which will link to the master calendar.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So first: create composite key in both tables containing the current key to the calendar and the department field. Rename the date key field so the current link is being removed.&lt;/P&gt;
&lt;P&gt;Then create the link table:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LINK:&lt;/P&gt;
&lt;P&gt;load date&lt;/P&gt;
&lt;P&gt;resident calendar&lt;/P&gt;
&lt;P&gt;// then you will load all date fields, also the ones that do not occur in the other tables&lt;/P&gt;
&lt;P&gt;inner join&amp;nbsp;&lt;/P&gt;
&lt;P&gt;load composite key field, date resident table1&lt;/P&gt;
&lt;P&gt;inner join&amp;nbsp;&lt;/P&gt;
&lt;P&gt;load composite key field, date resident table2&lt;/P&gt;
&lt;P&gt;in the end the link table will be linked to the calendar and the other 2 tables will both be linked to the link table, not to each other directly.&lt;/P&gt;
&lt;P&gt;if any questions, let me know!&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Advantages-of-Link-Table/m-p/573852" target="_blank"&gt;Solved: Re: Advantages of Link Table; - Qlik Community - 573849&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Sense-Documents/link-table/ta-p/1883375" target="_blank"&gt;link table - Qlik Community - 1883375&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 17:09:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Link-filter-without-loop/m-p/2473619#M99914</guid>
      <dc:creator>SterreKapteijns</dc:creator>
      <dc:date>2024-07-29T17:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Link filter without loop?</title>
      <link>https://community.qlik.com/t5/App-Development/Link-filter-without-loop/m-p/2473817#M99947</link>
      <description>&lt;P&gt;Thanks for what seems to be a good answer, if I didn't already have one composite link. I am trying to get a&amp;nbsp;&lt;EM&gt;second&amp;nbsp;&lt;/EM&gt;common definition, which is not hierarchical, which makes it difficult to just add to the existing composite table.&amp;nbsp;&lt;BR /&gt;&lt;FONT color="#999999"&gt;("&lt;SPAN&gt;I don't think going through a common department-period will solve the issue, as I am already using a "person-period" and one person can relate to different departments over time&lt;/SPAN&gt;")&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;I'll try to make my existing structure clearer.&amp;nbsp;&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Periods:
Load * Inline [
Month
1
2
3
];

Persons:
Load * Inline [
From, To, Name , Department
1  , 2 , Anna   , DeptA
2  , 4 , Anna   , DeptB
1  , 4 , Bill   , DeptA
1  , 3 , Charlie, DeptB
3  , 4 , Charlie, DeptC
];

PersonPeriods: 
[...doing the join as you mentioned...]
=&amp;gt;
Anna1    , DeptA
Anna2    , DeptB
Anna3    , DeptB
Bill1    , DeptA
Bill2    , DeptA
Bill3    , DeptA
Charlie1 , DeptB
Charlie2 , DeptB
Charlie3 , DeptC
&lt;/LI-CODE&gt;
&lt;P&gt;Now I know how the&amp;nbsp;&lt;EM&gt;persons&amp;nbsp;&lt;/EM&gt;in the organization are planned to work. Which is the initial setup.&amp;nbsp;&lt;BR /&gt;However I now want to set up the&amp;nbsp;&lt;EM&gt;plans&amp;nbsp;&lt;/EM&gt;for a department, which is NOT related to the people, but where the end results should be seen together.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Departments:
Load * Inline [
From, To, Department , Plans
1  , 2  , DeptA      , 2
2  , 4  , DeptA      , 4
1  , 4  , DeptB      , 4
1  , 3  , DeptC      , 1
3  , 4  , DeptC      , 3
];&lt;/LI-CODE&gt;
&lt;P&gt;Since people move between departments I can't go through them to handle the overall plans for the department. (For instance there would be no link to the plans for DeptC before Charlie starts in month 3.)&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;EM&gt;However&amp;nbsp;&lt;/EM&gt;when matching the plans with the actual organization I would like to be able to relate the filtering. If it was only for one department at the time I might use some variable, and set Analysis. But I'm not sure if that works when selecting multiple departments at the time. If this was SQL I guess I might be able to have a separate department table and use that selection as "where in (...)". But in my app I just don't see what's the best solution to achieve what doesn't seem to be to much to ask for.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So my desired outcome is to keep the current "who works where when" linked to the periods, and do the same with&amp;nbsp;"staffing plans" (so far so good), and then be able to filter&amp;nbsp;&lt;EM&gt;once&amp;nbsp;&lt;/EM&gt;to see both plans and actual staffing for the selected departments.&amp;nbsp;&lt;BR /&gt;(I already have the setup and linking in place, but now it is required to select both from actuals and plans to match the selection)&lt;BR /&gt;&lt;BR /&gt;This might seem to be much effort just to save one selection, but it is not the first time I have faced this situation, so I thought I'd check if there is some good solution I just haven't found yet.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 16:10:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Link-filter-without-loop/m-p/2473817#M99947</guid>
      <dc:creator>oddgeir</dc:creator>
      <dc:date>2024-07-30T16:10:49Z</dc:date>
    </item>
  </channel>
</rss>

