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

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

applymap...help plssss

Hi Experts,

i have the following script.

MapTable:

Mapping LOAD * INLINE [

    OLD,  NEW

    0831,  0201

    0208,  0214

    0210,  0212

];

Branch:

LOAD

    Applymap('MapTable', BRCODE, BRCODE) as BRCODE,

    BRNAME,

  

FROM

QVD\BRANCH.qvd

(qvd);

Calls:

LOAD  Applymap('MapTable', BRCODE, BRCODE) as BRCODE ,

    Date,

    BRNAME,

    Answered

  

FROM

QVD\DATA.qvd

(qvd);

concatenate

LOAD Date,

    BRNAME,

    Lookup('BRCODE','BRNAME', BRNAME,'Calls')  as BRCODE,

     Answered

 

FROM

QVD\CallDetails.qvd

(qvd)

Sales:

LOAD  Date,

      Amount,

    Applymap('MapTable', BRCODE, BRCODE) as BRCODE

FROM

QVD\Sales.qvd

(qvd);

I want to do mapping on BRCODE for all the above tables.

the applymap does works on all tables except Calls table.

the Calls table (after concatenate) doesn't have BRCODE, so i have done a lookup with the other table.

Now, i have to use applymap for Calls table (after concatenate).

How can i do this...pls help....

13 Replies
Not applicable
Author

anybody help plsss

hic
Former Employee
Former Employee

You need to change the definition of BRCODE also in this table. The test is to precede it with 'X' everywhere. You haven't done that in the concatenated part of the Calls table. You should use

     'X' & Lookup('BRCODE','BRNAME', BRNAME,'Calls')  as BRCODE,

Further, the 'X' is not a solution - it is just a tool that (hopefully) makes the problem visible.

HIC

Not applicable
Author

no henric,

its not working

pls give some other suggestions for that concatenate part

hic
Former Employee
Former Employee

It's impossible to tell what's wrong without the data.

HIC