Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
nicolearayav
Contributor II
Contributor II

Data base and dictionary

Hello guys,

Please help, I have a dictionary with the same information for two countries, see below:

QueueNameDepartmentCountry
CSISalesFrance
CSISalesGermany

 

Then I have my database, I have separate files for each country:

SalesFrance.xlsx
SalesGermany.xlsx

The information in the files came like this:

For the SalesFrance.xlsx

QueueNameCalls
CSI2

 

For the SalesGermany.xlsx

QueueNameCalls
CSI4

 

So when I do the cross information on a table and I filter the country France, and QueueName: CSI
the table still show me the information for both countries, example:

QueueNameCalls
CSI6

 

What can I do to differentiate the codes? because i already have the country filter, but doesnt work.

Please help! Thank you 

Labels (4)
1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

You can add a new field in the LOAD script, such as "Country" or "Source" where you store that information from the file name, if there are no better options.

Pseudocode should be:

FOR EACH vFile in FileList(C:\Folder\Files\*.xls)

LOAD
QueueName
Calls
FileName() as Source // '$(vFile)' could be use here as well
FROM vFile;

NEXT

- More on https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/Scrip...
- Similar example on https://community.qlik.com/t5/QlikView-Scripting/Loading-xls-or-xlsx/m-p/264908

View solution in original post

1 Reply
Miguel_Angel_Baeyens

You can add a new field in the LOAD script, such as "Country" or "Source" where you store that information from the file name, if there are no better options.

Pseudocode should be:

FOR EACH vFile in FileList(C:\Folder\Files\*.xls)

LOAD
QueueName
Calls
FileName() as Source // '$(vFile)' could be use here as well
FROM vFile;

NEXT

- More on https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/Scrip...
- Similar example on https://community.qlik.com/t5/QlikView-Scripting/Loading-xls-or-xlsx/m-p/264908