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: 
Not applicable

How to include only null values in Set Expression

I have a set expression that works fine. It excludes the Null values and shows the correct result

only({<ServerName-={''}>} ServerName)

I am looking for the Set Expression to return only Null values. I am not sure what am i missing here but this should work but it is not.

only({<ServerName={''}>} ServerName)

Also how do i combine multiple criteria here like "Only rows where ServerName is Null and HostName is Null"

Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

Try(not tried myself though):

only({$ - <ServerName={'*'}> * $-< HostName={'*'}>} ServerName)

Or,

only({($ - <ServerName={'*'}>) * ($-< HostName={'*'}>)} ServerName)

View solution in original post

5 Replies
sasiparupudi1
Master III
Master III

Try

only({<ServerName={"$(=Null())"}>} ServerName) 

tresB
Champion III
Champion III

May be like:

only({$ - <ServerName={'*'}, HostName={'*'}>} ServerName)

Kushal_Chawda
MVP
MVP

only({ <ServerName-={'*'}, HostName-={'*'}>} ServerName)

Not applicable
Author

They work individually but not when combined

tresB
Champion III
Champion III

Try(not tried myself though):

only({$ - <ServerName={'*'}> * $-< HostName={'*'}>} ServerName)

Or,

only({($ - <ServerName={'*'}>) * ($-< HostName={'*'}>)} ServerName)