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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Apllymap function not working well

Hi All,

In Applymap function can I use more than two parameter values,

Please find below statement,

ApplyMap:
Mapping load * Inline
[
Grade,Score
A,1
B,2
C,3
D,4
]
;

UsingApplyMap:
LOAD * Inline
[
Emp_Name,Salary,Loc
A,1000,Chennai
B,2000,Bangalore
C,1000,Bangalore
D,1000,Bangalore
E,2000,Bangalore    /* Not available in ApplyMap table
]
;

load ApplyMap('ApplyMap',Emp_Name,'unassign') as Emp_Grade Resident UsingApplyMap;

Above statement working fine,

But i am looking like,

load ApplyMap('ApplyMap',Emp_Name,’assign,'unassign') as Emp_Grade Resident UsingApplyMap;


Output like,

assign

assign

assign

unassign

Thanks & Regards,

Senthil…

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Maybe just use a map that has a constant second field value: 'assign',

ApplyMap:
Mapping load Grade, 'assign' as FieldB Inline
[
Grade
A
B
C
D
]
;

View solution in original post

2 Replies
swuehl
Champion III
Champion III

Maybe just use a map that has a constant second field value: 'assign',

ApplyMap:
Mapping load Grade, 'assign' as FieldB Inline
[
Grade
A
B
C
D
]
;

Not applicable
Author

Hi Swuehl,

Thanks a lot...

Regards,

Senthil..