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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
realpixel
Creator
Creator

count value is different

Hello,

I use the function count to count the column 'PEV', it's works fine but I need to count only HCOUNT is different. The value HMCOUNT = U5956123 appears three times and this value is counted three times.

CUSTOHMCONTPEV
CUSTO1U59561231
CUSTO1U59561231
CUSTO1U59561231
CUSTO2U31766581
CUSTO2U35378551
CUSTO2U91804511
CUSTO2U92812101
CUSTO2U20823081

see under the result

CUSTO PEV
CUSTO1 3
CUSTO2 5

Column CUSTO and HMCOUNT have 30 000 rows with different value. How to do to count only once if the value appears several time, like sum product in Excel?

count(PEV)

1 Solution

Accepted Solutions
swuehl
MVP
MVP

try a distinct count

=count(distinct HMCONT)

View solution in original post

2 Replies
swuehl
MVP
MVP

try a distinct count

=count(distinct HMCONT)

realpixel
Creator
Creator
Author

Hello Swuehl, thank you for your assistance. It's works!