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

Announcements
Note: You may notice some temporary visual or styling issues in the Community. Our vendor is actively investigating.
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

Mark the Policy No

LOAD,

POLICY_NO

CLASS,

AMOUNT

FROM C:\POLICY.QVD;

(QVD)

Say I have 1000 policies in the above load. In that 1000 policies there about 10 policies which I want to mark as 'UNPAID' and I know the numbers as well. How Can I edit the script to suit it

1 Solution

Accepted Solutions
nagaiank
Specialist III
Specialist III

Add the policy numbers, as you know them, as UNPAID in the load using preceding load:

LOAD *, If(Match(POLICY_NO,policy1,policy2,...,policy10),'UNPAID') as STATUS;

LOAD,

POLICY_NO

CLASS,

AMOUNT

FROM C:\POLICY.QVD;

(QVD)

View solution in original post

2 Replies
nagaiank
Specialist III
Specialist III

Add the policy numbers, as you know them, as UNPAID in the load using preceding load:

LOAD *, If(Match(POLICY_NO,policy1,policy2,...,policy10),'UNPAID') as STATUS;

LOAD,

POLICY_NO

CLASS,

AMOUNT

FROM C:\POLICY.QVD;

(QVD)

upaliwije
Creator II
Creator II
Author

THANKS