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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression if EMPTY VALUE or Null

Hey guys,

Im reading an SQL query from and populating a table, which works fine!

Now I would like to set a where statement so to speak in an expression. so that rows onyl shows where my column: Registration isNull or has an empty value.

Labels (1)
14 Replies
sunny_talwar
MVP
MVP

May add this in your expression:

{<Registration = {"=NullCount(Registration) > 0"}>}

or

{<Registration = {"=Len(Trim(Registration)) = 0"}>}

Kushal_Chawda
MVP
MVP

Which database it is? Oracle or Sql server?  want to restrict at back end or front end?

sunny_talwar
MVP
MVP

Alternatively create a flag in the script like this:

If(Len(Trim(Registration)) = 0, 1, 0) as Flag

and then use the flag

{<Flag = {1}>}

Not applicable
Author

SQL server

Kushal_Chawda
MVP
MVP

try

Sum({1-$<Registration ={'*'}>}Value)

Not applicable
Author

Not working 😕

Not applicable
Author

Not a sum just a if function

Kushal_Chawda
MVP
MVP

still not clear what you want to achieve it. Please elaborate.

sunny_talwar
MVP
MVP

I think creating the flag in the script will be the most easy way to do it.