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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Field not Found

Hi guys,

i am creating a new filed called Survey? (in the script editor) based on the following condition:

if( A > B, 'Survey', 'No Survey') as [Survey?],


The problem is that field B is not in the source data but I am mapping it using MAPPING LOAD/APPLYMAP.


Sense gives me the error that Field B cannot be found.


Is there a solution to this?


1 Solution

Accepted Solutions
shraddha_g
Partner - Master III
Partner - Master III

try

LOAD

   ApplyMap('SurveryLimit',"Claim To Code",'#N/A') as "Survey Limit ($)",   

   Region,

   Subs,

   "Claim No.",

   "Claim To Code",

   Amount,

    if("Amount" >ApplyMap('SurveryLimit',"Claim To Code",'#N/A'), 'Survey', 'No Survey') as [Survey?]

   

FROM [Table.xlsx];

View solution in original post

8 Replies
agigliotti
MVP
MVP

please post the entire script to help you.

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
prma7799
Master III
Master III

Please share your script ...

shraddha_g
Partner - Master III
Partner - Master III

Share a screenshot of your script

Anonymous
Not applicable
Author

This is the current script:

LOAD

   ApplyMap('SurveryLimit',"Claim To Code",'#N/A') as "Survey Limit ($)",   

           

   Region,

   Subs,

   "Claim No.",

   "Claim To Code",

   Amount,

   

  

    if("Amount" > "Survey Limit ($)", 'Survey', 'No Survey') as [Survey?],

   

FROM [Table.xlsx];

shraddha_g
Partner - Master III
Partner - Master III

try

LOAD

   ApplyMap('SurveryLimit',"Claim To Code",'#N/A') as "Survey Limit ($)",   

   Region,

   Subs,

   "Claim No.",

   "Claim To Code",

   Amount,

    if("Amount" >ApplyMap('SurveryLimit',"Claim To Code",'#N/A'), 'Survey', 'No Survey') as [Survey?]

   

FROM [Table.xlsx];

shraddha_g
Partner - Master III
Partner - Master III

also check whether applymap is giving any value in return

agigliotti
MVP
MVP

try with the below script:

LOAD *,

if("Amount" > "Survey Limit ($)", 'Survey', 'No Survey') as [Survey?];

LOAD

   ApplyMap('SurveryLimit',"Claim To Code",'#N/A') as "Survey Limit ($)",  

          

   Region,

   Subs,

   "Claim No.",

   "Claim To Code",

   Amount

  

FROM [Table.xlsx];

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
sumanta12
Creator II
Creator II

Try using the below script:

TAB1:

LOAD

   ApplyMap('SurveryLimit',"Claim To Code",'#N/A') as "Survey Limit ($)",  

          

   Region,

   Subs,

   "Claim No.",

   "Claim To Code",

   Amount

  

FROM [Table.xlsx];

TAB2:

LOAD

if("Amount" > "Survey Limit ($)", 'Survey', 'No Survey') as [Survey?],

"Survey Limit ($)",  

Region,

    Subs,

   "Claim No.",

   "Claim To Code",

    Amount

   

RESIDENT TAB1;

DROP TABLE TAB1;