Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
RJW
Contributor III
Contributor III

How to search by a list from an Excel file?

Hello,

I have a dashboard built on QlikView that displays various metrics for all Client ID's.

However, there is a list of special Client ID's that is manually updated on an Excel sheet on a shared drive. I want to be able to filter my existing dashboard to only show those special Client ID's when needed.

I found some methods that may work on this forum, but I do not want to have to copy and paste the Client ID's into QlikView each time. I want Qlik to read the Excel file, compile the list of special Client ID's, and then filter by just those. I would like to be able to toggle the filter on/off  the filter as needed.

Thank you!

Labels (1)
  • Other

3 Replies
stevejoyce
Specialist II
Specialist II

You can first, load the client ids from your excel file first into a mapping table.

Then when you load your full data, you can use apply map to search if it was part of the spcecial list.  if it's not you can use the 3rd parameter in applymap to add default value.

Then your front-end can use the new field - i called it [Is Special Client ID] which has vlaues "Special" and "Not Special"

 

special_clientids:
mapping load
client_id
,'Special' as client_id_special

from excelfile

;

 

source_data:

load

*
,applymap('special_clientids',client_id, 'Not Special') as [Is Special Client ID]
from othersource
;

RJW
Contributor III
Contributor III
Author

This is helpful. Thank you.

MarcoWedel

If you only need this filter to be turned on or off, then it might be enough to just load those client ids and a flag like 'SpecialClientsOnly' either as separate table or left joined to your client table.

If you create a listbox for this flag field and hide its caption, you get something like an on/off switch for this filter, that depending on the selection style would look like one of these:

MarcoWedel_0-1634245632096.png

hope this helps

Marco