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

Create a key from three different tables

I have three tables

TableA:

Location,

Country

 

TableB:

Division

Branch

 

Final:

ID,

Country,

Division

 

 

I need to create a key in 'Final' table with Autonumberhash(Location&Branch&ID)

How do I do this since other two fields are in different tables.

 
Labels (1)
1 Solution

Accepted Solutions
harithad95156
Contributor III
Contributor III

Hi, 

Mapping Load TableA:

Location,

Country 

MappingLoad TableB:

Division,

Branch 

Final:

ID,

Applymap('TableA', country,optional vslue) as Location,

Applymap('TableB', Division, optional value) as Branch,

Country,

Division 

For creating the key use:

Autonumber('Location'&'Branch'&'ID', composite key) as composite key

View solution in original post

4 Replies
harithad95156
Contributor III
Contributor III

Hi,

You can use Apply Map function to get those 2 fields by applying mapping
load for the first 2 tables.

canerkan
Partner - Creator III
Partner - Creator III

Hi Qlikwiz123,

did you try joining those tables? That way you would not need to create a key

 

Regards Can

qlikwiz123
Creator III
Creator III
Author

How do I do that?

harithad95156
Contributor III
Contributor III

Hi, 

Mapping Load TableA:

Location,

Country 

MappingLoad TableB:

Division,

Branch 

Final:

ID,

Applymap('TableA', country,optional vslue) as Location,

Applymap('TableB', Division, optional value) as Branch,

Country,

Division 

For creating the key use:

Autonumber('Location'&'Branch'&'ID', composite key) as composite key