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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
mparker123
Creator
Creator

In One Database not in the Other

Hello All,


I have and ODBC connection and a table file from a CSV file loaded into QlikView. Both of these have project names that we pull into QlikView. I want to create an expression that will return values of projects that are in the ODBC connection but not in the CSV file. How would I go about doing this?

1 Reply
felipedl
Partner - Specialist III
Partner - Specialist III

Hi Matt,

Create a flag or so from where its being loaded:

Something like:

TableODBC:

Load

     *,

     0 as [Flag Type] // Type of connection

From [Connection];

TableCSV:

Load

     *,

     1 as [Flag Type]

From [CSV File];

After that, do a count on each respective flag to check how many are coming from where.

count({<[Flag Type]={0}>}Distinct ProjectName) // Counts the ProjectNames that come from ODBC connection.

count({<[Flag Type]={1}>}Distinct ProjectName) // Counts the ProjectNames that come from CSV connection.

Felipe.