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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
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)

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

try a distinct count

=count(distinct HMCONT)

View solution in original post

2 Replies
swuehl
Champion III
Champion III

try a distinct count

=count(distinct HMCONT)

realpixel
Creator
Creator
Author

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