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: 
wgonzalez
Partner - Creator
Partner - Creator

How to load active employees only?

I want to load active employees only to the table in the script.  Active employees are coded in the Status column, how can I filte to load those with a specific code only?

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Hi,

You can do that either in the SQL statement or in the LOAD statement. The SQL is likely to be faster, except when using QVD files:

ActiveEmployees:

LOAD *

WHERE Status = 'A'; // the Status field is spelled and capitalized as it is recorded in the database, upper or lowercase

SQL SELECT *

FROM database.EmployeeTable;

Hope that helps.

Miguel

View solution in original post

2 Replies
Miguel_Angel_Baeyens

Hi,

You can do that either in the SQL statement or in the LOAD statement. The SQL is likely to be faster, except when using QVD files:

ActiveEmployees:

LOAD *

WHERE Status = 'A'; // the Status field is spelled and capitalized as it is recorded in the database, upper or lowercase

SQL SELECT *

FROM database.EmployeeTable;

Hope that helps.

Miguel

wgonzalez
Partner - Creator
Partner - Creator
Author

Thanks!