Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Excluded null values

Hi..

In set analysis how we excluded null values for perticular field..

Please Help me..

Thanks,

4 Replies
ashfaq_haseeb
Champion III
Champion III

Hi,

Filtering Null is a tricky part.

You can try {*} to select all values that should exclude the null value and - {''} should get rid of the blank values.

=sum({$<resolveddate ={'*'}-{''}>} 1)

If possible share sample app to look over.

Regards

ASHFAQ

Not applicable
Author

eg: to exclude null values

sum({<status -= {''}>}sales)

or

sum({<status = {'*'}-{''}>}sales)

Not applicable
Author

sum({<resoveddate-={''}>}sales)

MK_QSL
MVP
MVP

Consider that you have sales data with Customer, Date and Sales as Fields and Date field is having Null Values... You can find Total Sales wherever Date is not null as below

SUM({<Date = {'*'}>}Sales)

If the above is not working, you need to assign blank or - values of Date as Null.

Use below code in Script which will replace Date

IF(IsNull(Date) or Len(Trim(Replace(Date,'-','')))=0,Null(),Date) as Date