<?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: Inner Join leads to missing data in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Inner-Join-leads-to-missing-data/m-p/1823661#M67581</link>
    <description>&lt;P&gt;In general should your approach work. Possible errors may occur if there is a previous table with the same data-structure like the Table1 and/or any qualifying is used and/or makedate() returned not for all records a valid date because of the data-quality of the source-fields and/or your &lt;STRONG&gt;noticed values doesn't belong to the max-date&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;A relative easy check would be if your replaced the inner with a left statement and adds another simple field within the join-load - something like 1 as Flag. Now no reduction will happens and you could identify which of the latestdate is also the max-date.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt;: I think your issue is the missing employee within the aggregation join-load because without all records will be matched against a single-date ...&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jul 2021 14:53:23 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2021-07-21T14:53:23Z</dc:date>
    <item>
      <title>Inner Join leads to missing data</title>
      <link>https://community.qlik.com/t5/App-Development/Inner-Join-leads-to-missing-data/m-p/1823333#M67543</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am loading data directly from SQL, I have used appropriate renaming in the load statement when needed. My task is to find the maximum value based on the date and&amp;nbsp; generate the latest data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I have fields like month year and day. Using MakeDate function I find the latest date. The issue I face is, there are few employee names that are available in the latest date(example today) but it is not reflecting in the output. If I run the SQL query in the editor, I can find the data, but not when performing inner join in qliksense load script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I am missing something obvious and I am not aware of it. As I am new to this qliksense, any help would be greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load Name as [Employee Name], day, month,year ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;MakeDate(year,month,day) as latestdate;&lt;/P&gt;&lt;P&gt;SQL select * from hive.emp.empdata;&lt;/P&gt;&lt;P&gt;Inner Join(Table1)&lt;/P&gt;&lt;P&gt;Load Date(Max(latestdate)) as latestdate&lt;/P&gt;&lt;P&gt;resident Table1;&lt;/P&gt;&lt;P&gt;Note: I am using qliksense September 2020 version&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 14:30:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Inner-Join-leads-to-missing-data/m-p/1823333#M67543</guid>
      <dc:creator>qlikuser22</dc:creator>
      <dc:date>2021-07-20T14:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join leads to missing data</title>
      <link>https://community.qlik.com/t5/App-Development/Inner-Join-leads-to-missing-data/m-p/1823661#M67581</link>
      <description>&lt;P&gt;In general should your approach work. Possible errors may occur if there is a previous table with the same data-structure like the Table1 and/or any qualifying is used and/or makedate() returned not for all records a valid date because of the data-quality of the source-fields and/or your &lt;STRONG&gt;noticed values doesn't belong to the max-date&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;A relative easy check would be if your replaced the inner with a left statement and adds another simple field within the join-load - something like 1 as Flag. Now no reduction will happens and you could identify which of the latestdate is also the max-date.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt;: I think your issue is the missing employee within the aggregation join-load because without all records will be matched against a single-date ...&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 14:53:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Inner-Join-leads-to-missing-data/m-p/1823661#M67581</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-07-21T14:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join leads to missing data</title>
      <link>https://community.qlik.com/t5/App-Development/Inner-Join-leads-to-missing-data/m-p/1824088#M67625</link>
      <description>&lt;P&gt;Thanks for the update. I tried with the left join as well, but I can see that I have more records which is not max date as well. SO any other idea will be really helpful.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 09:07:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Inner-Join-leads-to-missing-data/m-p/1824088#M67625</guid>
      <dc:creator>qlikuser22</dc:creator>
      <dc:date>2021-07-23T09:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join leads to missing data</title>
      <link>https://community.qlik.com/t5/App-Development/Inner-Join-leads-to-missing-data/m-p/1824090#M67626</link>
      <description>&lt;P&gt;You need to include the employee or any other valid key within the join.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 09:27:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Inner-Join-leads-to-missing-data/m-p/1824090#M67626</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-07-23T09:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join leads to missing data</title>
      <link>https://community.qlik.com/t5/App-Development/Inner-Join-leads-to-missing-data/m-p/1824093#M67627</link>
      <description>&lt;P&gt;Thanks. Does this work?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load Name as [Employee Name], day, month,year ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;MakeDate(year,month,day) as latestdate;&lt;/P&gt;&lt;P&gt;SQL select * from hive.emp.empdata;&lt;/P&gt;&lt;P&gt;Inner Join(Table1)&lt;/P&gt;&lt;P&gt;Load [Employee Name], Date(Max(latestdate)) as latestdate&amp;nbsp;&lt;/P&gt;&lt;P&gt;resident Table1;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 09:35:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Inner-Join-leads-to-missing-data/m-p/1824093#M67627</guid>
      <dc:creator>qlikuser22</dc:creator>
      <dc:date>2021-07-23T09:35:19Z</dc:date>
    </item>
  </channel>
</rss>

