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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

Apply map

I have in my data table following two data tables

 

Policy NoPol_typeNos
1N1
2R1
3N1
4F-1
5R1
6F0

  mapfleet

Policy NoNos_Risks
11
23
34
40
51
60

I have applied the following script 

IF(MATCH(POL_TYPE,'N','R'),ApplyMap('mapfleet',POLICY_NO,'Null')AND IF(POL_TYPE='F',Nos))as NOS_RISKS

Although the script runs without any error result for the Nos_Risks is 0. Result should be 9

Pls see this correct my script

1 Solution

Accepted Solutions
Anil_Babu_Samineni

And operator can works only within IF statements. You can try this?

IF(MATCH(POL_TYPE,'N','R'),ApplyMap('mapfleet',POLICY_NO,'Null'), IF(POL_TYPE='F',Nos)) as NOS_RISKS

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

2 Replies
Anil_Babu_Samineni

And operator can works only within IF statements. You can try this?

IF(MATCH(POL_TYPE,'N','R'),ApplyMap('mapfleet',POLICY_NO,'Null'), IF(POL_TYPE='F',Nos)) as NOS_RISKS

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
prma7799
Master III
Master III

Like this ??