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

Please Help Count/Distinct Count

Hi,

I have a table with two columns (see below)

ItemStatus
1230
1230
321
121
121
10

I need to calculate the total number of distinct items and also calculate total number of completed Distinct items (Status = 1)

eventually i need a percentage representation.

Please help me figure this requirement. Thank you for your time and help.

Best,

Nik

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

1. count (distinct Item)

2. count ({<Status={1}>} distinct Item)

View solution in original post

2 Replies
Anonymous
Not applicable
Author

1. count (distinct Item)

2. count ({<Status={1}>} distinct Item)

Not applicable
Author

Hi Michael,

Thank you, I kept trying different variations of the 2nd option. Wasnt aware that we can have different fields.

Does {<Status = {1}>} act as a conditional if?

Thanks again for your time.