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

Expression help

Hello,

I am trying to add an expression to a chart that calculates null values with a particular activity type.  I have it working with the expression below:

=nullcount(SALESPARTDESC)

However, I want it to calculate this only for an activity that is an OPD.  E.g:

=NULLCOUNT(IF(ACTIVITY_SUB_TYPE = 'OPD', SALESPARTDESC).

This also works but is still calculating the null values for all other activity sub types and not only OPD's.  It will only show if I select OPD.  (which is frustrating)

Any advice will be greatly received.  Thank you. 

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try using set analysis, like:

=NULLCOUNT({<ACTIVITY_SUB_TYPE = {'OPD'}>} SALESPARTDESC)

View solution in original post

3 Replies
tresesco
MVP
MVP

Try using set analysis, like:

=NULLCOUNT({<ACTIVITY_SUB_TYPE = {'OPD'}>} SALESPARTDESC)

Anonymous
Not applicable
Author

Can you post your qvw or the sample data for the same.

It would help us understand your issue on much better way

Regards

Nitin

Not applicable
Author

Perfect, thank you!