Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
sterno14
Contributor II
Contributor II

Chart Sum Values Help

Hello All,

I hope this is an easy question, I will try to explain as best as possible.I have a chart, sample attached, which has two policy ID's  within the same date period. What I want is for all the Claim ID's to show the same value, which is the sum of the two premium values.Policy 1 has Premium = 100000 and Policy 2 has Premium = 200000. I want to do this in the chart expression.

Basically I have this:

What I have.PNG

What I want is this:

What I want.PNG

Any help is appreciated.

1 Solution

Accepted Solutions
vishsaggi
Champion III
Champion III

use this:

= Sum(Total <[Valuation Date] > [Premium])

View solution in original post

7 Replies
vishsaggi
Champion III
Champion III

May be this:

= Sum(TOTAL [Premium])

sterno14
Contributor II
Contributor II
Author

Thanks for the quick reply. I probably should have included a larger sampling. The issue I have with Total is that if there are additional policy ID's for other dates then using Sum(TOTAL [Premium]) will show that value on all rows (Policy 3, Period 2017, Valuation Date 5/31/2017, premium 150000)?. I need to limit to the particular Period & Valuation Date

vishsaggi
Champion III
Champion III

Can you add some sample or update your qvw and give me your expected output?

sterno14
Contributor II
Contributor II
Author

I updated the qvw. Here is what I want:

What I want.PNG

vishsaggi
Champion III
Champion III

use this:

= Sum(Total <[Valuation Date] > [Premium])

sterno14
Contributor II
Contributor II
Author

Thanks. That works. So that acts as group by essentially. Thanks for the help.

vishsaggi
Champion III
Champion III

Yes.