<?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: Loading data from Excel that has to match SQL data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-data-from-Excel-that-has-to-match-SQL-data/m-p/364411#M135579</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lets say that in your DB, the Projects table has a field called ProjectName. And the Project field from the XLS is the project name. So:&lt;/P&gt;&lt;P&gt;SQL select ProjectName&lt;/P&gt;&lt;P&gt;from ....;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Project, ....&lt;/P&gt;&lt;P&gt;from xls....&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where exists(ProjectName, Project)&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is to use the EXISTS() function, which will filter only the data from the XLS that already exists in the ProjectName.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jun 2012 02:39:58 GMT</pubDate>
    <dc:creator>fosuzuki</dc:creator>
    <dc:date>2012-06-28T02:39:58Z</dc:date>
    <item>
      <title>Loading data from Excel that has to match SQL data</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-data-from-Excel-that-has-to-match-SQL-data/m-p/364410#M135578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In blue below I have an SQL script that ONLY loads Projects that are Horizontal 'ABC'.&amp;nbsp; I've reduced the script considerably for this example.&amp;nbsp; In the red I have text that brings in projects from an Excel document.&amp;nbsp; The problem is that it's bringing in ALL projects! It's cluttering up my QlikView dashboard list with irrelevant projects.&amp;nbsp; How do I effectively say in the load script "Only bring in data from Excel corresponding to Projects that are found in the SQL database"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to anyone who has any suggestions &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;ODBC CONNECT TO ABC_Report;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;SQL SELECT *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;FROM Project.par.Projects&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;WHERE Status = 'Live'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;AND Horizontal = 'ABC'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Project,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Client&amp;nbsp;&amp;nbsp; (Summary)],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Client Feedback],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;D&gt;&lt;/D&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;(ooxml, embedded labels, table is Scorecard);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.morrisongovan.co.uk"&gt;http://www.morrisongovan.co.uk&lt;/A&gt;Morrison Govan UK &lt;A href="http://www.morrisongovan.co.uk" target="_blank"&gt;FATCA&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2012 15:54:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-data-from-Excel-that-has-to-match-SQL-data/m-p/364410#M135578</guid>
      <dc:creator />
      <dc:date>2012-06-22T15:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data from Excel that has to match SQL data</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-data-from-Excel-that-has-to-match-SQL-data/m-p/364411#M135579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lets say that in your DB, the Projects table has a field called ProjectName. And the Project field from the XLS is the project name. So:&lt;/P&gt;&lt;P&gt;SQL select ProjectName&lt;/P&gt;&lt;P&gt;from ....;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Project, ....&lt;/P&gt;&lt;P&gt;from xls....&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where exists(ProjectName, Project)&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is to use the EXISTS() function, which will filter only the data from the XLS that already exists in the ProjectName.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2012 02:39:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-data-from-Excel-that-has-to-match-SQL-data/m-p/364411#M135579</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2012-06-28T02:39:58Z</dc:date>
    </item>
  </channel>
</rss>

