Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
sanjujeeboy
Creator
Creator

how to insert values from a mapping file to load records

Hi All,

i have a mapping file which has certain set of countries eg: US,UK,Germany etc.

now i am loading some records in another table  based on above countries

Eg: Load * where Country = US,UK,Germany

My requirement is whenever mapping file gets updated with new country(suppose Italy), The table should should pick up that country also  eg:(Load * where Country = US,UK,Germany,Italy).

How to achieve this.

@Kushal_Chawda @jagan 

Labels (3)
1 Solution

Accepted Solutions
Kushal_Chawda

You can do something like below

 

Assuming Country field name is same in both table. If not then change the name of country field in mapping table as same as main table

Mapping_Country:
load distinct Country
FROM Maptable;

Main_table:
load *
FROM Table
where exists(Country);

 

 

View solution in original post

2 Replies
Kushal_Chawda

You can do something like below

 

Assuming Country field name is same in both table. If not then change the name of country field in mapping table as same as main table

Mapping_Country:
load distinct Country
FROM Maptable;

Main_table:
load *
FROM Table
where exists(Country);

 

 

sanjujeeboy
Creator
Creator
Author

Thanks Kush!!..The solution works...