Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikhereqlikthe
Contributor
Contributor

Set Analysis involving date

Dear all,

I face difficulty in summing up the total claim paid out for one of my client. The situation as below:

1. Client ABC has been our client for years, but we would like to know the total claim paid out throughout their latest in force period which is in this case, 1st July 2018 to 30th June 2019. Coverage year is 2018 as the year of the commencement is 2018. 

I've tried the expression, but both expressions failed to give me the total claim paid for each admission:

a. sum({<[Date of Admission]={'>=PolicyCommerce<=PolicyRenew'}>}[Total Payable])

b.sum({<[Date of Admission]={"[Date of Admission]>=PolicyCommerce, [Date of Admission]<=PolicyRenew"}>}[Total Payable])

 

ClientPolicyNumbersPolicyCommencePolicyRenewCoverage_YearDate of AdmissionClaim Payable
ABCP123401/07/201830/06/2019201814/07/2018RM0.00
ABCP123401/07/201830/06/2019201831/08/2018RM0.00
ABCP123401/07/201830/06/2019201806/09/2018RM0.00
ABCP123401/07/201830/06/2019201808/10/2018RM0.00

 

Hence, anyone can provide their advice on how to tackle this issue?

Labels (1)
6 Replies
swapniltaz
Contributor III
Contributor III

Hi ,

 

Can you Use Below 

sum({<[Date of Admission]={">=PolicyCommerce <=PolicyRenew"}>}[Total Payable])

qlikhereqlikthe
Contributor
Contributor
Author

Dear Swapniltaz,

I've tried, it comes out as 0 too. 😞
PrashantSangle

Hi,

can you share some sample data with expected output??

Regards,
Prashant Sangle
Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
swapniltaz
Contributor III
Contributor III

I forsee Date format issue or Qlik is not able to read and compaare your dates properly

PLease Use following variable in your Qlik formula 

vPolicyRenew: Date(Date#(PolicyRenew,'DD/MM/YYYY' )'DD/MM/YYYY')
vPolicyCommerce: Date(Date#(PolicyCommerce,'DD/MM/YYYY' )'DD/MM/YYYY')
vDA : Date(Date#([Date of Admission],'DD/MM/YYYY' )'DD/MM/YYYY')

qlikhereqlikthe
Contributor
Contributor
Author

Hey there, this is just a simple sample for your perusal

qlikhereqlikthe
Contributor
Contributor
Author

I have up to 10,000++ client, do I have to create the variables for all of them? As some of them would have different policy commencement date.