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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
new_guy
Contributor III
Contributor III

if and count

Hello guys,

I want to create a KPI which should first check a field of one column and if the condition applies count the rows of an other column.

 

I went with the following:

count (if([FIELD_NAME]="EXPRESSION"), distinct [COLUMN_NAME])

I tried several other ways but nothing worked yet. Any suggestions? Thanks in advance!

1 Reply
pradosh_thakur
Master II
Master II

something similar
count(distinct{<FIELD_NAME ={"EXPRESSION"}>} [COLUMN_NAME])

or

sum(if([FIELD_NAME]="EXPRESSION",1,0))

Learning never stops.