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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
soloeeeoff
Contributor III
Contributor III

Map ... using :

Hi all,

I tried <Map..Using> keyword as

tab1:
LOAD No,
Dept
FROM

(
ooxml, embedded labels, table is Sheet1);


map1:
Mapping
LOAD m_key,
m_Value
FROM

(
ooxml, embedded labels, table is Map);


Map Dept using map1;




But I could not understand what difference it makes ..

Please explain me..

3 Replies
Anonymous
Not applicable

I think  you did not get concept of Mapping.. It replaces values of field you want to have in place of.


Think of a data model where you have a lot of Dept fields which values you want to rename in the whole data model. You would either use as many ApplyMap() functions as fields you want to change, or use MAP Field USING after the MAPPING LOAD.



Anil_Babu_Samineni

Perhaps This

tab1:
Mapping LOAD No,
Dept
FROM

(
ooxml, embedded labels, table is Sheet1);


map1:
LOAD m_key,
m_Value
FROM

(
ooxml, embedded labels, table is Map);


Map Dept using map1;

Applymap('tab1',Dept,'UnknownKey')

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
swuehl
MVP
MVP

I think the order of your statements should be

1) Create your mapping table using MAPPING LOAD prefix

2) MAP Field. USING Map;

3) LOAD Field FROM ....;