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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
qv_jagan
Partner - Creator
Partner - Creator

Calculate Data by aggregation

Dear All,

I have a data policyno, claimno, prem, claimamt.

I want create a chart with policyno wise claimamt. claimamt should be caluculated by claimno and then sum to policyno wise base on the logic given.

Post:
****
If ClaimAmt of each claim is greater than 100000 then 100000 else ClaimAmt.

Pre:
***
If ClaimsAmt of each claim is greater that 100000 then ClaimAmt - 100000 else zero.

Please let me know how to calculate Post & Pre column.

The output should be like Output table. Only policy dimension to be used.

Please see the qvw file attached for your reference.

Thanks,

Jagan. V

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Create a straight table chart with dimension policy nr. then 3 expression:

=sum(ClaimAmt)

=sum(if(ClaimAmt>100000,100000,ClaimAmt))

=sum(if(ClaimAmt>100000,ClaimAmt-100000,0))

View solution in original post

3 Replies
swuehl
MVP
MVP

Is this the correct sample file? Please recheck, I don't see your claim data.

qv_jagan
Partner - Creator
Partner - Creator
Author

Sorry the attachment was wrong, Please check now.

swuehl
MVP
MVP

Create a straight table chart with dimension policy nr. then 3 expression:

=sum(ClaimAmt)

=sum(if(ClaimAmt>100000,100000,ClaimAmt))

=sum(if(ClaimAmt>100000,ClaimAmt-100000,0))