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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Conditional Count expression

Hi,

I am new to QV world just learning basics. I am looking for help with conditional count expression. Searched here, but did not find what I needed.

I have two data columns - Name and Certification date. I want to create text box showing count of Names that are not certified (= empty cell for Certification date). What is the right syntax for expression?

Also what the right expression would be if I want this shown as percentage from total of Names?

Thanks for help.

S.

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Sorry a bracket was missing. Try:

=Count(Distinct If(Len(Trim([Certification date]))=0, Name) ) /Count(Distinct Name) *100

View solution in original post

9 Replies
Anonymous
Not applicable
Author

Try

=count(if(not(isnull([Certification date])),Names))

tresesco
MVP
MVP

=Count(Distinct If(Len(Trim([Certification date]))=0, Name) /Count(Distinct Name) *100

Yousef_Amarneh
Partner - Creator III
Partner - Creator III

create a flag in your script and name it IsCertified and but the following if(IsNull(Certification date),0,1) then reload the script

in your report set the following expression count({$<IsCertified{0}>} Name)

Yousef Amarneh
Anonymous
Not applicable
Author

Thanks, but this doesn't work. Shows Error: Nested aggregation not allowed.

tresesco
MVP
MVP

Sorry a bracket was missing. Try:

=Count(Distinct If(Len(Trim([Certification date]))=0, Name) ) /Count(Distinct Name) *100

Anonymous
Not applicable
Author

Thanks. This works. I have just removed "not" so it counts empty cells.

Anonymous
Not applicable
Author

Now works. Thanks a lot !

breno_morais
Partner - Contributor III
Partner - Contributor III

Thanks. You help me a lot, I did not know the "not"

hector_obregon_
Contributor II
Contributor II

Thanks so much my friend...