Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
kevbrown
Creator II
Creator II

Keep left?

I have picked up the following script -

ClaimsCheck:
MAPPING load Ref,'No' as Ind
resident ClaimsIndicator
where PrepareClaimsMotor.TotalIncidents=0 AND PrepareClaimsMotor.TotalIncurredAmt=0 ;

drop table ClaimsIndicator;

left keep (UnboundPeersMotor) load [UnboundPeersMotor.Marsh Ref],applymap('ClaimsCheck',[UnboundPeersMotor.Marsh Ref],'Yes') as ClaimsInd
resident PrepareClaimsMotor;

left keep(UnboundPeersMotor)LOAD ClientRef,
ClaimRef,
ClientRef&'/'&date(yearstart(NotificationDate),'YYYY') as ClaimsCauseKey,
ClaimPaymentRef,
CostType,
Cause,
Type,
Section,
Status,
ClientAtFault,
NCDImpact,
NotificationDate,
LossFromDate,
SettlementDate,
PaymentDate,
ExcessDeducted,
Paid,
Recovered,
Reserved
FROM
//
$(vDataPath)Jelf Motor Risks.xlsx
(
ooxml, embedded labels, table is [Claims Casue of Loss])
where Type='Motor';

And I've been asked to add the following -

LOAD ClientRef,
ClaimRef,
ClientRef&'/'&date(yearstart(NotificationDate),'YYYY') as ClaimsCauseKey,
ClaimPaymentRef,
CostType,
Cause,
Type,
Section,
Status,
ClientAtFault,
NCDImpact,
NotificationDate,
LossFromDate,
SettlementDate,
PaymentDate,
ExcessDeducted,
Paid,
Recovered,
Reserved
FROM
$(vDataPath)Claim_EL.xlsx
(
ooxml, embedded labels, table is [Claim_EL])
where Type='Employers Liability';

So effectively it's the same fields but from a different source.  Do I just concatenate or do I Keep Left? Or what?

2 Replies
aarkay29
Specialist
Specialist

Concatenate my friend If you Keep left there will be synthetic keys in the data model

kevbrown
Creator II
Creator II
Author

That's that I thought, however when I did concatenate I didn't get any records pulling through