Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problem with Mapping

id:

mapping LOAD fil_id,

     New_id

FROM

FilChange.xls

(biff, embedded labels, table is Sheet1$);

LOAD,

  fil_id,

     ApplyMap('id',fil_id) as New_id,

FROM

(qvd);

Fil.QVD looks like:

Nr.fil_idaddr_idinfo1info2info3
1100121212
2101242424
3140121212

FilChange.xls looks like:

fil_idNew_id
10Store1
14Store2

Now I reload and get two list boxes, one for fil_id and one for New_id and I would suspect that fil_id shows 10,14 and New_id shows Store1 and Store 2, but... New_id also shows 10,14. What goes wrong?

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

The expectation is correct...  I suspect that '10' in one table is not the same as '10' in another.  Maybe string vs. number.  Can you try this:

id:
mapping LOAD text(fil_id),
     New_id
FROM
FilChange.xls
(biff, embedded labels, table is Sheet1$);


LOAD,
  fil_id,
     ApplyMap('id',text(fil_id)) as New_id,
...

View solution in original post

5 Replies
sunny_talwar

Working for me. Have a look at it (PFA)

id:

Mapping LOAD fil_id,

     New_id

FROM

[https://community.qlik.com/thread/161590]

(html, codepage is 1252, embedded labels, table is @2, filters(

Remove(Row, Pos(Top, 4))

));

LOAD Nr.,

     fil_id,

     addr_id,

     info1,

     info2,

     info3,

     ApplyMap('id',fil_id) as New_id

FROM

[https://community.qlik.com/thread/161590]

(html, codepage is 1252, embedded labels, table is @1);

Best,

Sunny

Anonymous
Not applicable
Author

The expectation is correct...  I suspect that '10' in one table is not the same as '10' in another.  Maybe string vs. number.  Can you try this:

id:
mapping LOAD text(fil_id),
     New_id
FROM
FilChange.xls
(biff, embedded labels, table is Sheet1$);


LOAD,
  fil_id,
     ApplyMap('id',text(fil_id)) as New_id,
...

Gabriel
Partner - Specialist III
Partner - Specialist III

Hi,

Is New_id in the excel file and defined. It looks like that field is not in the excel file. Post both excel file and a sample qvw file please.

buzzy996
Master II
Master II

USE THIS,

Not applicable
Author

You don't want to know what I've been trying for something so simple. Won't happen again. Thank you!