Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

count function show double result

Hi

i have a problem with count() Untitled.png

my project language is Persian so maybe it's difficult to understand the problem. as you see in the picture i have four people with a "فشار خون بالا" disease but in chart count() show 8

i can't figure out what's the problem

i also load my qvw file if it helps.

i would appreciate if someone can help me.

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

This is because your Join has created duplicate records.

The above chart is a tablebox which will not show you the duplicated records.

But in chart aggregation it will count even though its duplicate.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

3 Replies
Chanty4u
MVP
MVP

or try with

sum(urfield)

or

count(agg(urfield))

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

This is because your Join has created duplicate records.

The above chart is a tablebox which will not show you the duplicated records.

But in chart aggregation it will count even though its duplicate.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Anonymous
Not applicable
Author

hi Kaushik Solanki

i use distinct and it worked. Thank you

But Why records are duplicated, which part of my join is incorrect?