Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
jamesehunt
Contributor III
Contributor III

Count if Value only appears once

Hello,

I need to Count values in one column but only if the value appears once. As well as values which appear more then once and how many duplicates.

  

9002216
9002217
9002218
9002218
9002218
9002219

e.g.

values appearing once: 3

values appearing more than once: 1

duplicates appearing: 3

Thanks for helping

1 Solution

Accepted Solutions
sunny_talwar

Value appearing one

Count(DISTINCT{<Value = {"=Count(Value) = 1"}>}Value)

Value appearing more than once

Count(DISTINCT {<Value = {"=Count(Value) > 1"}>}Value)

Duplicate appearing

Count({<Value = {"=Count(Value) > 1"}>}Value)

View solution in original post

4 Replies
sunny_talwar

Value appearing one

Count(DISTINCT{<Value = {"=Count(Value) = 1"}>}Value)

Value appearing more than once

Count(DISTINCT {<Value = {"=Count(Value) > 1"}>}Value)

Duplicate appearing

Count({<Value = {"=Count(Value) > 1"}>}Value)

jamesehunt
Contributor III
Contributor III
Author

Hello Sunny,

thank you very much.

Would anyone be so kind and help me with the following :

sum full pallets if value appearing more than once

sumd full pallets if value appearing only once

Thank you very much for your help

sunny_talwar

May be this

sumd full pallets if value appearing only once

Sum({<Value = {"=Count(Value) = 1"}>} [full pallets])


sum full pallets if value appearing more than once

Sum({<Value = {"=Count(Value) > 1"}>} [full pallets])

jamesehunt
Contributor III
Contributor III
Author

Thank you. Worked perfectly