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: 
wuming79
Creator
Creator

Count is return unique count problem

Hi,

I have a table as below:

IPstart sequence
1.1.1.1-
2.2.2.21
1.1.1.11
3.3.3.32
1.1.1.12
4.4.4.43

I just wanted to count the number of IP that appears on the table using SUM(IP) but the table I get is unique count instead.

IPSUM(IP)
1.1.1.11
2.2.2.21
3.3.3.31
4.4.4.41

I'm not sure why am I getting this issue... when I uncheck show start sequence NULL, I can see there are 2 x 1.1.1.1.

Labels (1)
1 Solution

Accepted Solutions
wuming79
Creator
Creator
Author

Hi, I found the problem. I had to rename one of the fields because the field I am counting is a key and count the new fieldname.

View solution in original post

3 Replies
tomasz_tru
Specialist
Specialist

use: COUNT(IP)

wuming79
Creator
Creator
Author

Hi,

same issue. it will count as unique. I'm not sure if this is affected by other tables that has IP column? I actually has 4 tables that are linked by "IP" and they all have a key icon beside them when I look at the Data Model Viewer.

wuming79
Creator
Creator
Author

Hi, I found the problem. I had to rename one of the fields because the field I am counting is a key and count the new fieldname.