Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Loading data from Excel that has to match SQL data

Hi,

In blue below I have an SQL script that ONLY loads Projects that are Horizontal 'ABC'.  I've reduced the script considerably for this example.  In the red I have text that brings in projects from an Excel document.  The problem is that it's bringing in ALL projects! It's cluttering up my QlikView dashboard list with irrelevant projects.  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"

Thanks to anyone who has any suggestions

ODBC CONNECT TO ABC_Report;

SQL SELECT *

FROM Project.par.Projects

WHERE Status = 'Live'

AND Horizontal = 'ABC'

Project,

     [Client   (Summary)],

     [Client Feedback],

FROM

(ooxml, embedded labels, table is Scorecard);

---------------------------------------------------------------------------------------------------------------

http://www.morrisongovan.co.ukMorrison Govan UK FATCA

1 Reply
fosuzuki
Partner - Specialist III
Partner - Specialist III

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:

SQL select ProjectName

from ....;

LOAD Project, ....

from xls....

where exists(ProjectName, Project);

The idea is to use the EXISTS() function, which will filter only the data from the XLS that already exists in the ProjectName.

Hope this helps you

Fernando