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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
FcoSamuel
Contributor II
Contributor II

I can't get the sum function to work with duplicate values

1.PNG

Putting it in automatic totals doesn't work and I can't use it in a pivot table. I need it to automatically do the sum of all the values.

Putting it in KPI doesn't work for me either. any ideas?

1 Solution

Accepted Solutions
Or
MVP
MVP

Assuming Value is a field taken from the same table as Mes Documento, it should work and sum correctly. If they are from two separate tables this may be a case where there's actually only one Value to sum, and it's being displayed twice because you put it in the same table with a field from a different table? Providing sample data would help understand the situation here, I think.

View solution in original post

4 Replies
Or
MVP
MVP

Write your formula so that it sums up correctly. Without knowing what the formula is, it's impossible to try and help you correct it.

FcoSamuel
Contributor II
Contributor II
Author

sum(value)

Or
MVP
MVP

Assuming Value is a field taken from the same table as Mes Documento, it should work and sum correctly. If they are from two separate tables this may be a case where there's actually only one Value to sum, and it's being displayed twice because you put it in the same table with a field from a different table? Providing sample data would help understand the situation here, I think.

FcoSamuel
Contributor II
Contributor II
Author

They are in different tables. It is very likely a model / relationship problem with the tables just as I was afraid.