<?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 Where clause in inner join not working in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Where-clause-in-inner-join-not-working/m-p/2526156#M107151</link>
    <description>&lt;P&gt;Hello, I have 3 tables link to my products that I would like to inner join to have only data for the current year.&lt;BR /&gt;&lt;BR /&gt;As I don't have any date in table1 and table2, I try to add a where clause on the last table, on the 'CreationDate' field.&lt;BR /&gt;&lt;BR /&gt;But when I display the data, I have all my data, the condition is not working.&lt;BR /&gt;This is very confusing, because when I load the data, the number of lines has decreased.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code look like this :&lt;BR /&gt;Table1:&lt;BR /&gt;ProductID&lt;BR /&gt;SupplierID;&lt;BR /&gt;&lt;BR /&gt;Table2:&lt;BR /&gt;ProductID&lt;BR /&gt;ProductSalesCat1&lt;BR /&gt;ProductSalesCat2&lt;BR /&gt;INNER JOIN (Table1)&lt;BR /&gt;LOAD * RESIDENT Table2;&lt;BR /&gt;&lt;BR /&gt;Table3:&lt;BR /&gt;ProductID&lt;BR /&gt;ProductName&lt;BR /&gt;CreationDate&lt;BR /&gt;YEAR(CreationDate) as YearCreationDate;&lt;BR /&gt;INNER JOIN (Table2)&lt;BR /&gt;LOAD * RESIDENT Table3&lt;BR /&gt;WHERE YEAR(CreationDate) = Year(Today());&lt;BR /&gt;&lt;BR /&gt;I even try to drop Table1 and Table2 to clarify my scheme but it didn't help me.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Aug 2025 13:50:06 GMT</pubDate>
    <dc:creator>Tenuki</dc:creator>
    <dc:date>2025-08-04T13:50:06Z</dc:date>
    <item>
      <title>Where clause in inner join not working</title>
      <link>https://community.qlik.com/t5/App-Development/Where-clause-in-inner-join-not-working/m-p/2526156#M107151</link>
      <description>&lt;P&gt;Hello, I have 3 tables link to my products that I would like to inner join to have only data for the current year.&lt;BR /&gt;&lt;BR /&gt;As I don't have any date in table1 and table2, I try to add a where clause on the last table, on the 'CreationDate' field.&lt;BR /&gt;&lt;BR /&gt;But when I display the data, I have all my data, the condition is not working.&lt;BR /&gt;This is very confusing, because when I load the data, the number of lines has decreased.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code look like this :&lt;BR /&gt;Table1:&lt;BR /&gt;ProductID&lt;BR /&gt;SupplierID;&lt;BR /&gt;&lt;BR /&gt;Table2:&lt;BR /&gt;ProductID&lt;BR /&gt;ProductSalesCat1&lt;BR /&gt;ProductSalesCat2&lt;BR /&gt;INNER JOIN (Table1)&lt;BR /&gt;LOAD * RESIDENT Table2;&lt;BR /&gt;&lt;BR /&gt;Table3:&lt;BR /&gt;ProductID&lt;BR /&gt;ProductName&lt;BR /&gt;CreationDate&lt;BR /&gt;YEAR(CreationDate) as YearCreationDate;&lt;BR /&gt;INNER JOIN (Table2)&lt;BR /&gt;LOAD * RESIDENT Table3&lt;BR /&gt;WHERE YEAR(CreationDate) = Year(Today());&lt;BR /&gt;&lt;BR /&gt;I even try to drop Table1 and Table2 to clarify my scheme but it didn't help me.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 13:50:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Where-clause-in-inner-join-not-working/m-p/2526156#M107151</guid>
      <dc:creator>Tenuki</dc:creator>
      <dc:date>2025-08-04T13:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause in inner join not working</title>
      <link>https://community.qlik.com/t5/App-Development/Where-clause-in-inner-join-not-working/m-p/2526182#M107156</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Table3:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;load&lt;BR /&gt;&lt;SPAN&gt;ProductID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ProductName&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CreationDate&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;YEAR(CreationDate) as YearCreationDate&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WHERE YEAR(CreationDate) = Year(Today());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;left join(Table3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Table2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;load&lt;BR /&gt;ProductID&lt;BR /&gt;ProductSalesCat1&lt;BR /&gt;ProductSalesCat2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;left join(Table3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Table1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;load&lt;BR /&gt;ProductID&lt;BR /&gt;SupplierID;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 17:38:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Where-clause-in-inner-join-not-working/m-p/2526182#M107156</guid>
      <dc:creator>anat</dc:creator>
      <dc:date>2025-08-04T17:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause in inner join not working</title>
      <link>https://community.qlik.com/t5/App-Development/Where-clause-in-inner-join-not-working/m-p/2526265#M107172</link>
      <description>&lt;P&gt;Many thanks Anat, I see that I didn't understand that order is important, and that I should start from the biggest table and merge all on it.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 10:09:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Where-clause-in-inner-join-not-working/m-p/2526265#M107172</guid>
      <dc:creator>Tenuki</dc:creator>
      <dc:date>2025-08-05T10:09:57Z</dc:date>
    </item>
  </channel>
</rss>

