<?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: Join issue between two tables in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Join-issue-between-two-tables/m-p/1928958#M76483</link>
    <description>&lt;P&gt;Near as I can tell, your issue has nothing to do with joining. You need to make up missing week/shop data in Table1 so that each shop has a line for each week (with 0 sales if no line existed). A simple join back to Table2 will then work.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 May 2022 07:07:03 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2022-05-11T07:07:03Z</dc:date>
    <item>
      <title>Join issue between two tables</title>
      <link>https://community.qlik.com/t5/App-Development/Join-issue-between-two-tables/m-p/1928636#M76465</link>
      <description>&lt;P&gt;Hi everyone.&lt;/P&gt;
&lt;P&gt;I have to tables like those ones :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Table1" style="width: 200px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79085iE02F2104F7E13D23/image-size/small?v=v2&amp;amp;px=200" role="button" title="Table1.png" alt="Table1" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Table1&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Table2" style="width: 170px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79087i0188C1781356B0B2/image-size/small?v=v2&amp;amp;px=200" role="button" title="Table2.png" alt="Table2" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Table2&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd like to join these two in order to have for each week, each shop and its sales (0 if there are no sales)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Result Table" style="width: 200px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79086i6304DA006FB553E4/image-size/small?v=v2&amp;amp;px=200" role="button" title="TableResult.png" alt="Result Table" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Result Table&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm a little bit confused, nothing i've tried seems to be working.&lt;/P&gt;
&lt;P&gt;Thanks in advance for your help !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Gabriel&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 14:14:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Join-issue-between-two-tables/m-p/1928636#M76465</guid>
      <dc:creator>Gabriel_Foret</dc:creator>
      <dc:date>2022-05-10T14:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Join issue between two tables</title>
      <link>https://community.qlik.com/t5/App-Development/Join-issue-between-two-tables/m-p/1928638#M76466</link>
      <description>&lt;P&gt;To join the tables, simply:&lt;/P&gt;
&lt;P&gt;Load * From Table1;&lt;/P&gt;
&lt;P&gt;Join&lt;/P&gt;
&lt;P&gt;Load * From Table2;&lt;/P&gt;
&lt;P&gt;You could use Left Join if desired.&lt;/P&gt;
&lt;P&gt;Note that this has nothing to do with filling in missing values when a shop has no line for a specific week - that's a whole different can of worms, see: &lt;A href="https://community.qlik.com/t5/QlikView-Documents/Generating-Missing-Data-In-QlikView/ta-p/1491394" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/QlikView-Documents/Generating-Missing-Data-In-QlikView/ta-p/1491394&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 14:26:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Join-issue-between-two-tables/m-p/1928638#M76466</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-05-10T14:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Join issue between two tables</title>
      <link>https://community.qlik.com/t5/App-Development/Join-issue-between-two-tables/m-p/1928663#M76467</link>
      <description>&lt;P&gt;Thanks for your quick reply !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In fact, I did join them simply like you said :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Script QLIK" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79093i11F52ACC3A91E86E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SciptQlik1.png" alt="Script QLIK" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Script QLIK&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry to bother you with that, i might be wrong somewhere.&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;But in my analysis table, i only have the lines for the shops with sales and one for the Shop4 with no sales.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Table Result in QLIK" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79097i82E79D87E0CA28EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="QlikResult1.png" alt="Table Result in QLIK" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Table Result in QLIK&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 14:38:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Join-issue-between-two-tables/m-p/1928663#M76467</guid>
      <dc:creator>Gabriel_Foret</dc:creator>
      <dc:date>2022-05-10T14:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Join issue between two tables</title>
      <link>https://community.qlik.com/t5/App-Development/Join-issue-between-two-tables/m-p/1928666#M76468</link>
      <description>&lt;P&gt;That is the correct behavior - if you don't want the extra line, you can use left join instead of just join.&lt;/P&gt;
&lt;P&gt;A join operation will not create lines that don't exist, which is the case for any shops that did not have sales in a specific week. Have a look at the post I previously linked insofar as filling in missing/partial data.&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 14:44:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Join-issue-between-two-tables/m-p/1928666#M76468</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-05-10T14:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Join issue between two tables</title>
      <link>https://community.qlik.com/t5/App-Development/Join-issue-between-two-tables/m-p/1928672#M76469</link>
      <description>&lt;P&gt;I'll check the post you shared.&lt;/P&gt;
&lt;P&gt;Thanks a lot for your help ! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 14:54:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Join-issue-between-two-tables/m-p/1928672#M76469</guid>
      <dc:creator>Gabriel_Foret</dc:creator>
      <dc:date>2022-05-10T14:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Join issue between two tables</title>
      <link>https://community.qlik.com/t5/App-Development/Join-issue-between-two-tables/m-p/1928729#M76470</link>
      <description>&lt;P&gt;So, I had a look on the link you shared (thanks for that!)&lt;/P&gt;
&lt;P&gt;But in all the examples presented on that pdf, i'm not sure that it applies to my case.&lt;/P&gt;
&lt;P&gt;Each time, the join is done for a unique field that could be missing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here I have to match one measure with two dimension fields (so it creates missing cells where no sales is stored).&lt;/P&gt;
&lt;P&gt;(Our target is for each week to have Shop1, Shop2, Shop3, Shop4).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have any advice,&lt;/P&gt;
&lt;P&gt;Thanks !&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 16:43:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Join-issue-between-two-tables/m-p/1928729#M76470</guid>
      <dc:creator>Gabriel_Foret</dc:creator>
      <dc:date>2022-05-10T16:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Join issue between two tables</title>
      <link>https://community.qlik.com/t5/App-Development/Join-issue-between-two-tables/m-p/1928958#M76483</link>
      <description>&lt;P&gt;Near as I can tell, your issue has nothing to do with joining. You need to make up missing week/shop data in Table1 so that each shop has a line for each week (with 0 sales if no line existed). A simple join back to Table2 will then work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 07:07:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Join-issue-between-two-tables/m-p/1928958#M76483</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-05-11T07:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Join issue between two tables</title>
      <link>https://community.qlik.com/t5/App-Development/Join-issue-between-two-tables/m-p/1928976#M76486</link>
      <description>&lt;P&gt;Actually, thinking of it again, you might be able to achieve this fairly easily with a Cartesian join. Should look something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Temp:&lt;/P&gt;
&lt;P&gt;Load Distinct Week, 0 as Sales&lt;/P&gt;
&lt;P&gt;From Table1;&lt;/P&gt;
&lt;P&gt;JOIN&lt;/P&gt;
&lt;P&gt;Load Distinct ShopID&lt;/P&gt;
&lt;P&gt;from Table2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Load Week, ShopID, Sales from Table1; // This will go into the Temp table as well&lt;/P&gt;
&lt;P&gt;Final:&lt;/P&gt;
&lt;P&gt;Noconcatenate Load Week, ShopID, Sum(Sales) as Sales&lt;/P&gt;
&lt;P&gt;Resident Temp;&lt;/P&gt;
&lt;P&gt;Join&lt;/P&gt;
&lt;P&gt;Load * From Table2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Drop Table Temp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 07:40:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Join-issue-between-two-tables/m-p/1928976#M76486</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-05-11T07:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Join issue between two tables</title>
      <link>https://community.qlik.com/t5/App-Development/Join-issue-between-two-tables/m-p/1929004#M76488</link>
      <description>&lt;P&gt;Hi again Or !&lt;/P&gt;
&lt;P&gt;Just now, I was trying something like that, with a Cartesian join at first.&lt;/P&gt;
&lt;P&gt;It works with your help, thanks a lot !&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 07:57:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Join-issue-between-two-tables/m-p/1929004#M76488</guid>
      <dc:creator>Gabriel_Foret</dc:creator>
      <dc:date>2022-05-11T07:57:13Z</dc:date>
    </item>
  </channel>
</rss>

