Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn 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