Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
nagasekhar
Contributor III
Contributor III

look up maping

 

WHY  I AM GETTING BLANK VALUES HERE?

SCRIPT:

Directory;
T2:
LOAD StudentID,
[m marks]
FROM
[C:\Users\User\Downloads\New folder (5)\qlik files\lookup.xlsx]
(ooxml, embedded labels, table is [M marks]);
T1:
LOAD StudentID,
[sc marks]
FROM
[C:\Users\User\Downloads\New folder (5)\qlik files\lookup.xlsx]
(ooxml, embedded labels, table is [sc marks]);

Directory;
Student:
LOAD StudentID,
name,
Lookup('[sc marks]','StudentID',StudentID,'T1') as scmarks,
Lookup('[m marks]','StudentID',StudentID,'T2') as mamarks
FROM
[C:\Users\User\Downloads\New folder (5)\qlik files\lookup.xlsx]
(ooxml, embedded labels, table is Sheet3);

look.png

11 Replies
nagasekhar
Contributor III
Contributor III
Author

T1:
LOAD StudentID,
[sc marks]
FROM
[C:\Users\User\Downloads\New folder (5)\qlik files\lookup.xlsx]
(ooxml, embedded labels, table is [sc marks]);

T2:
LOAD StudentID,
[m marks]
FROM
[C:\Users\User\Downloads\New folder (5)\qlik files\lookup.xlsx]
(ooxml, embedded labels, table is [M marks]);

Student:
LOAD StudentID,
name,
Lookup('sc marks','StudentID',StudentID,'T1') as scmarks,
Lookup('m marks','StudentID',StudentID,'T2') as mamarks
FROM
[C:\Users\User\Downloads\New folder (5)\qlik files\lookup.xlsx]
(ooxml, embedded labels, table is Sheet3);

DROP Tables T1,T2;

 

vinieme12
Champion III
Champion III

use Applymap() instead

 

 

T1:
Mapping LOAD StudentID,
[sc marks]
FROM
[C:\Users\User\Downloads\New folder (5)\qlik files\lookup.xlsx]
(ooxml, embedded labels, table is [sc marks]);

T2:
Mapping LOAD StudentID,
[m marks]
FROM
[C:\Users\User\Downloads\New folder (5)\qlik files\lookup.xlsx]
(ooxml, embedded labels, table is [M marks]);

Student:
LOAD StudentID,
name,
Applymap('T1',StudentID) as scmarks,
Applymap('T2',StudentID) as mmarks
FROM
[C:\Users\User\Downloads\New folder (5)\qlik files\lookup.xlsx]
(ooxml, embedded labels, table is Sheet3);

//DROP Tables T1,T2; not needed as mapping tables are not stored

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.