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

ISNULL function

Hello Fellow users,

I have a problem with the following statement, cann someone help me, here it comes.

I have three fields FOB_BILLING , FREIGHT_EST, RESULT. I would like to write the following formula:

If (FOB_BILLING <=0 then Field RESULT should be 0.

iF(FOB_BILLING >0 then Field RESULT Should have the value of FREIGHT_EST .

I tried the following statement:

IF(ISNULL(FOB_BILLING)= '0', FREIGHT_EST,'0') as RESULT,

Greetings from Holland,

Aissam



4 Replies
yblake
Partner - Creator II
Partner - Creator II

let's try :

IF(IF(ISNULL(FOB_BILLING),0,FOB_BILLING) > 0, FREIGHT_EST,0) as RESULT,

Not applicable
Author

Thanks Yves,

It works,

Merci beaucoup,

Aissam

Not applicable
Author

I don't understand why you should need the ISNULL() function for this problem, I would fix it like this:

IF(FOB_BILLING>0,FREIGHT_EST,'0') AS RESULT


Otherwise like this:

IF(ISNULL(FOB_BILLING),'0',IF(FOB_BILLING<=0,'0',FREIGHT_EST)) AS RESULT


Not applicable
Author

This works also.

Bedankt,

Aissam