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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Count a column value only once

Hi,

Can someone help me with an expression problem. I need to make a count expression to count a value only once, even if it is present in the column several times? Also i would have to do it the other way around, count line items.

Name     Orders

Gary     10

Gary     25

Eli     30

Shawn     45

Appreciate the help.. learning slowly.

1 Solution

Accepted Solutions
SunilChauhan
Champion II
Champion II

in dimension select name

and in expression write

count(distinct Name)

Sunil Chauhan

View solution in original post

4 Replies
Not applicable
Author

count (Distinct name)

SunilChauhan
Champion II
Champion II

see the attched file

Sunil Chauhan
Not applicable
Author

Sorry but i am still waiting for my Named Cal license.. Could you post the expression?

Thanks for the help.

SunilChauhan
Champion II
Champion II

in dimension select name

and in expression write

count(distinct Name)

Sunil Chauhan