Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Incomprehensible result

Hi

I need help to understand very incomprehensible result in chart (the document attached)

I have 2 tables, linked by the column FAMILLE_NUM

The column "AFFECTE" is equal to 0/1

When I select some families (for example ), the result of the expression sum(AFFECTE) is 2, whereastheres is just one family xho is selected

Please, Help

That is te first time I see something like tthis

Laurent

1 Solution

Accepted Solutions
Gysbert_Wassenaar

You can add the distinct keyword to the expressions: sum(distinct AFFECTE).


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
Gysbert_Wassenaar

Your data contains duplicate records. QV doesn't show duplicates, so you can only see it because the count and sum of AFFECTE are 2 instead of 1.


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

Hi

Thank for your response

What expression can I use in order to have the good result ?

Gysbert_Wassenaar

You can add the distinct keyword to the expressions: sum(distinct AFFECTE).


talk is cheap, supply exceeds demand