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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Incorrect totals in a Pivot Table

I have a pivot table with 3 dimensions:

Critical Crashes 2007 Q12007 Q22007 Q32007 Q4
Loss Of Control0-100K 952401393665
Loss Of Control100K-250K 7577
Loss Of Control250K-500K 2202
Loss Of Control500K+ 3343
Loss Of ControlTotal 953404397672

As you can see, the partial sum totals are incorrect.  The expression is a simple one:

 

sum

({$<[Claim Company] = {'XXXX'}>}[Accident Counter]

)

Any ideas how to get the correct totals?

1 Solution

Accepted Solutions
whiteline
Master II
Master II

Hi.

Most likely, it's correct.  I suggest you just have some values of [Accident Counter] field that are connected with more than one [Critical Crashes] value.

Depending on what is 'correct' you have either:

1) Sum(aggr(sum({$<[Claim Company] = {'XXXX'}>}[Accident Counter]), [Critical Crashes], Quarter)) - to get 964 and so on.

2) Correct your data to eliminate duplicates - to get 953 as column total sum.

View solution in original post

1 Reply
whiteline
Master II
Master II

Hi.

Most likely, it's correct.  I suggest you just have some values of [Accident Counter] field that are connected with more than one [Critical Crashes] value.

Depending on what is 'correct' you have either:

1) Sum(aggr(sum({$<[Claim Company] = {'XXXX'}>}[Accident Counter]), [Critical Crashes], Quarter)) - to get 964 and so on.

2) Correct your data to eliminate duplicates - to get 953 as column total sum.