<?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 Left-outer join problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Left-outer-join-problem/m-p/177986#M45354</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;Did you tried just Left Join, instead of Left Outer join ?&lt;/P&gt;&lt;P&gt;Does any sample column/field exist in Projects and Reports table ?&lt;/P&gt;&lt;P&gt;Doest reportdate field exist in the reporttemp ?&lt;/P&gt;&lt;P&gt;And you can also change the If condition by "IF(Not isNull(reportdate),'Y','N')".&lt;/P&gt;&lt;P&gt;If you can post the sample qvw, i can be very clear about the problem.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;R.Srinivasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Jan 2011 18:54:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-20T18:54:43Z</dc:date>
    <item>
      <title>Left-outer join problem</title>
      <link>https://community.qlik.com/t5/QlikView/Left-outer-join-problem/m-p/177985#M45353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried a number of different attempts to get this but to no avail. Here's a summary:&lt;/P&gt;&lt;P&gt;we have a project which can have 0,1 or many related records(call them reports)&lt;/P&gt;&lt;P&gt;I would like to show in one table all the customers and whether they have 0 / 1 / many reports (plus some basic fields to go with it.)&lt;/P&gt;&lt;P&gt;We can then add a simple list box to allow the user to filter on those projects with reports and those that don't.&lt;/P&gt;&lt;P&gt;The approach as I see it is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) build a small, single field table with the project id's&lt;/P&gt;&lt;P&gt;2) do a left-outer-join to the reports table - this will list all projects and whether they have a report or not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I managed to get this to work. But I then want to reload all the data again and check the 'report.date' field. If it contains a value, set a Boolean - Y, else N. Then I want to use this flag to filter the record. But it's this last bit that doesn't want to run without an 'cannot recognize field' error.&lt;/P&gt;&lt;P&gt;I have both tables loaded already (from *.qvd files.)&lt;/P&gt;&lt;P&gt;I then do:&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt;"&gt;&lt;I style="mso-bidi-font-style: normal;"&gt;reporttemp&lt;/I&gt;:&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt;"&gt;load&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt;"&gt;projectid&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt;"&gt;resident projects;&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt;"&gt;left outer join(reporttemp)&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt;"&gt;load *&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt;"&gt;resident reports;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;it works ok up to here&amp;gt;&lt;/P&gt;&lt;P&gt;I then try:&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt;"&gt;&lt;I style="mso-bidi-font-style: normal;"&gt;finaltable&lt;/I&gt;:&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt;"&gt;load *,&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt;"&gt;if(reportdate &amp;lt;&amp;gt; null, 'Y','N')&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt;"&gt;resident reporttemp;&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;but it doesn't recognize the 'reportdate' field, or any field from the reporttemp table.&amp;gt; If I look at the list of available project fields from a sheet object, the table name has an unexpected prefix (reporttemp-1.) or something like this.&lt;/P&gt;&lt;P&gt;Has anyone tried to build something similar and have an alternative approach, or know what I'm doing wrong here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 18:35:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-outer-join-problem/m-p/177985#M45353</guid>
      <dc:creator />
      <dc:date>2011-01-20T18:35:07Z</dc:date>
    </item>
    <item>
      <title>Left-outer join problem</title>
      <link>https://community.qlik.com/t5/QlikView/Left-outer-join-problem/m-p/177986#M45354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;Did you tried just Left Join, instead of Left Outer join ?&lt;/P&gt;&lt;P&gt;Does any sample column/field exist in Projects and Reports table ?&lt;/P&gt;&lt;P&gt;Doest reportdate field exist in the reporttemp ?&lt;/P&gt;&lt;P&gt;And you can also change the If condition by "IF(Not isNull(reportdate),'Y','N')".&lt;/P&gt;&lt;P&gt;If you can post the sample qvw, i can be very clear about the problem.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;R.Srinivasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 18:54:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-outer-join-problem/m-p/177986#M45354</guid>
      <dc:creator />
      <dc:date>2011-01-20T18:54:43Z</dc:date>
    </item>
  </channel>
</rss>

