<?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: How to Join a Sales Person and Year Key with Fact Table Indirectly via Multiple Tables? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-Join-a-Sales-Person-and-Year-Key-with-Fact-Table/m-p/2479178#M100567</link>
    <description>&lt;P&gt;The most obvious answer is that you will need to either get [Sales person] on to your fact table; or join customer and header info on to your forecast so you get the forecast on [KeyDocument] (not Sales Person) and [Year] level.&lt;/P&gt;</description>
    <pubDate>Mon, 02 Sep 2024 15:20:07 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2024-09-02T15:20:07Z</dc:date>
    <item>
      <title>How to Join a Sales Person and Year Key with Fact Table Indirectly via Multiple Tables?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-Join-a-Sales-Person-and-Year-Key-with-Fact-Table/m-p/2479108#M100556</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I’m working on a QlikSense project where I need to join a table containing forecast data (&lt;CODE&gt;FORECAST&lt;/CODE&gt;) based on a key composed of &lt;CODE&gt;[Year]&lt;/CODE&gt; and &lt;CODE&gt;[Sales Person]&lt;/CODE&gt;. However, the challenge is that these fields are not directly available in a single table within my data model.&lt;/P&gt;
&lt;P&gt;Here’s the structure of my data:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;FACTS:&lt;/STRONG&gt; Contains &lt;CODE&gt;KeyDate&lt;/CODE&gt; (from which I extract &lt;CODE&gt;Year&lt;/CODE&gt;) and &lt;CODE&gt;KeyDocument&lt;/CODE&gt;, which links to &lt;CODE&gt;HEADINFORMATION&lt;/CODE&gt;.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;HEADINFORMATION:&lt;/STRONG&gt; Contains &lt;CODE&gt;KeyDocument&lt;/CODE&gt; and &lt;CODE&gt;CustomerID&lt;/CODE&gt;, which links to&lt;CODE&gt;CUSTOMER&lt;/CODE&gt;.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;CUSTOMER:&lt;/STRONG&gt; Contains &lt;CODE&gt;CustomerID&lt;/CODE&gt; and &lt;CODE&gt;Sales Person&lt;/CODE&gt;.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;To clarify:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;I need to join the&lt;CODE&gt;FORECAST&lt;/CODE&gt;table, which uses a composite key of &lt;CODE&gt;Year&lt;/CODE&gt; and &lt;CODE&gt;Sales Person&lt;/CODE&gt;, to the fact data.&lt;/LI&gt;
&lt;LI&gt;However, &lt;CODE&gt;Year&lt;/CODE&gt; is only available in the &lt;CODE&gt;FACTS&lt;/CODE&gt;&amp;nbsp;table, and &lt;CODE&gt;Sales Person&lt;/CODE&gt; is only in the &lt;CODE&gt;DEBITOR&lt;/CODE&gt; table.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;What is the best approach to create a reliable data model that enables me to link &lt;CODE&gt;FORECAST&lt;/CODE&gt;&amp;nbsp;with the fact data using this composite key, given that the necessary fields are spread across different tables? I tried joining them by creating a composite key using temporary tables, but I’m not sure if this is the most efficient or correct method.&lt;/P&gt;
&lt;P&gt;Any advice or best practices would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 08:14:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-Join-a-Sales-Person-and-Year-Key-with-Fact-Table/m-p/2479108#M100556</guid>
      <dc:creator>jannis_qlik</dc:creator>
      <dc:date>2024-09-02T08:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to Join a Sales Person and Year Key with Fact Table Indirectly via Multiple Tables?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-Join-a-Sales-Person-and-Year-Key-with-Fact-Table/m-p/2479178#M100567</link>
      <description>&lt;P&gt;The most obvious answer is that you will need to either get [Sales person] on to your fact table; or join customer and header info on to your forecast so you get the forecast on [KeyDocument] (not Sales Person) and [Year] level.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 15:20:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-Join-a-Sales-Person-and-Year-Key-with-Fact-Table/m-p/2479178#M100567</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2024-09-02T15:20:07Z</dc:date>
    </item>
  </channel>
</rss>

