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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

applymap

Hello ,
I am a new member on Qlik view ,I have some errors when I apply the ApplyMap () function between my two tables knowing that I renamed the common key to have the same name in both tables.

it tells me that my field can not be found.

Thank you for your help.

1 Solution

Accepted Solutions
sunny_talwar

replace KeyDefectStatus with Site&DefectStatus within the ApplyMap line

View solution in original post

10 Replies
sunny_talwar

Can you share the script you have used?

ziadm
Specialist
Specialist

Please post a sample code

The Syntax

ApplyMap('TableName',FieldName,'Unknown') as    MappedField

You must be passing a FieldName that is does not exist in the Table

Anonymous
Not applicable
Author

Capture1.PNGCapture2.PNG

Anonymous
Not applicable
Author

Attached the screenshot of my script .

Capture1.PNGCapture2.PNG

Thank you for your help.

sunny_talwar

You need to move Progress tab before Defect because the mapping table load needs to be before you use ApplyMap

Anonymous
Not applicable
Author

I have this error:Erreur.PNG

sunny_talwar

replace KeyDefectStatus with Site&DefectStatus within the ApplyMap line

Anonymous
Not applicable
Author

if I understand correctly, ApplyMap does not like renaming attributes?

vishsaggi
Champion III
Champion III

Just an idea we can also do a preceding Load apply map If i am not wrong like:

LOAD *,

          ApplyMap('Apply_Progress_Status', KeyDefectStatus) AS DefectStatusDesc;

LOAD DISTINCT

column1,

column2,

Site&DefectStatus as KeyDefectStatus,

Site

FROM ...... Defect-*.qvd(qvd);