Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

mapping problem

map_name:

Mapping LOAD;

LOAD deptno,

     name

FROM

C:\qlikview\emp.xlsx

(ooxml, embedded labels, table is Sheet1);

emp:

LOAD deptno,

     location

FROM

C:\qlikview\emp.xlsx

(ooxml, embedded labels, table is Sheet2);

applying map('map_name',deptno) as name2

ERRORS

1) field not found

2)unkonown statment

1 Solution

Accepted Solutions
jagannalla
Partner - Specialist III
Partner - Specialist III

Hi Vinay,

Please try to load data from excel first, If it works then try to implement the concept of mapping.

Map1:

Mapping

LOAD deptno,

     name

FROM

C:\qlikview\emp.xlsx

(ooxml, embedded labels, table is Sheet1);

Emp:

LOAD deptno,

     location,

applymap('Map1',deptno) as name2

FROM

C:\qlikview\emp.xlsx

(ooxml, embedded labels, table is Sheet2);

Hope it helps you.

Cheers!!

Jagan

View solution in original post

10 Replies
tresesco
MVP
MVP

Guess, it should be something like:

map_name:

Mapping LOAD;

LOAD deptno,

     name

FROM

C:\qlikview\emp.xlsx

(ooxml, embedded labels, table is Sheet1);

emp:

LOAD deptno,

       applying map('map_name',deptno) as name2,

     location

FROM

C:\qlikview\emp.xlsx

(ooxml, embedded labels, table is Sheet2);

Not applicable
Author

Hi Vinay,

Try this.

map_name:

Mapping LOAD deptno,

     name

FROM

C:\qlikview\emp.xlsx

(ooxml, embedded labels, table is Sheet1);

emp:

LOAD deptno,

     location

FROM

C:\qlikview\emp.xlsx

(ooxml, embedded labels, table is Sheet2);

applying map('map_name',deptno) as name2

Regards,

Anju

Not applicable
Author

Field not found - <LOAD>

LOAD deptno,

     name

FROM

C:\qlikview\emp.xlsx

(ooxml, embedded labels, table is Sheet1)

2

Syntax error, missing/misplaced FROM:

emp:

LOAD deptno,

       applying map('map_name',deptno) as name2,

     location

FROM

C:\qlikview\emp.xlsx

(ooxml, embedded labels, table is Sheet2)

emp:

LOAD deptno,

       applying map('map_name',deptno) as name2,

     location

FROM

C:\qlikview\emp.xlsx

(ooxml, embedded labels, table is Sheet2)

Not applicable
Author

Unknown statement

applying map('map_name',deptno) as name2

Not applicable
Author

its applymap , not applying map

Not applicable
Author

May be it can be work....

map_name:

Mapping LOAD deptno,

     name

FROM

C:\qlikview\emp.xlsx

(ooxml, embedded labels, table is Sheet1);

emp:

LOAD deptno,

applymap('map_name',deptno) as name2,   

location

FROM

C:\qlikview\emp.xlsx

(ooxml, embedded labels, table is Sheet2);

jagannalla
Partner - Specialist III
Partner - Specialist III

Hi Vinay,

Please try to load data from excel first, If it works then try to implement the concept of mapping.

Map1:

Mapping

LOAD deptno,

     name

FROM

C:\qlikview\emp.xlsx

(ooxml, embedded labels, table is Sheet1);

Emp:

LOAD deptno,

     location,

applymap('Map1',deptno) as name2

FROM

C:\qlikview\emp.xlsx

(ooxml, embedded labels, table is Sheet2);

Hope it helps you.

Cheers!!

Jagan

Not applicable
Author

tresesco wrote:

Guess, it should be something like:

map_name:

Mapping LOAD;

LOAD deptno,

     name

FROM

C:\qlikview\emp.xlsx

(ooxml, embedded labels, table is Sheet1);

emp:

LOAD deptno,

       applying map('map_name',deptno) as name2,

     location

FROM

C:\qlikview\emp.xlsx

(ooxml, embedded labels, table is Sheet2);

just modifying tresesco's script :

map_name:

Mapping

LOAD DEPTNO,

     NAME

FROM

C:\qlikview\emp.xlsx

(ooxml, embedded labels, table is Sheet1);

emp:

LOAD DEPTNO,

       APPLYMAP ('map_name',DEPTNO) as name2,

     LOCATION

FROM

C:\qlikview\emp.xlsx

(ooxml, embedded labels, table is Sheet2);

Just be careful to put the field you are mapping in capital letters.

I faced this issue earlier... it does not work with small letters.

Regards,

Anju

Not applicable
Author

same problem came