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

Can't find the way to use Null in an if expression

Hi:

I have an expresión which result may be null, and the resulta is expressed in Qlik Sense as "-".

When i try to make a new expression in which i have an if conditional I can't seem to use the null expresión:

Example

Result column 1 = "-".

=If(column(1)=null(),

RGB(255,0,0),

RGB(0,128,0))

How can I make it work.

1 Solution

Accepted Solutions
lironbaram
Partner - Master III
Partner - Master III

hi

have you try

=If(isnull(column(1)),

RGB(255,0,0),

RGB(0,128,0))

View solution in original post

2 Replies
lironbaram
Partner - Master III
Partner - Master III

hi

have you try

=If(isnull(column(1)),

RGB(255,0,0),

RGB(0,128,0))

heosupplink
Contributor II
Contributor II
Author

Thanks!!! That worked!!!!