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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
AleCruc94
Contributor III
Contributor III

Null Value

Hi,

I try to explain my problem:

 I have a zero value obtained through a set analysis (which means the at the maximum data I have, through a specific filter this value is not in my table, so it turns correctly zero)

then I want an another field which is obtained through the value above; infact if the value above is zero then I have to obtain 1 otherwise 2.

However it turns zero but is is not exacly zero because in the set analysis 

if(isNull(Sum({<pg_status= {'1'}, Direzione={'Global Markets'},DataPL_num_report = {"$(vMaxDataCalendar)"} >}Net_IAS_PL)/1000),
'1',
'2')

it gives me 2 and not 1

 

Some help??

thankss

 

1 Solution

Accepted Solutions
lorenzoconforti
Specialist II
Specialist II

If it the result is 0, then you shouldn't use IsNull. Unless I'm missing something

 

if(Sum({<pg_status= {'1'}, Direzione={'Global Markets'},DataPL_num_report = {"$(vMaxDataCalendar)"} >}Net_IAS_PL)/1000 = 0,
'1',
'2')

View solution in original post

2 Replies
lorenzoconforti
Specialist II
Specialist II

If it the result is 0, then you shouldn't use IsNull. Unless I'm missing something

 

if(Sum({<pg_status= {'1'}, Direzione={'Global Markets'},DataPL_num_report = {"$(vMaxDataCalendar)"} >}Net_IAS_PL)/1000 = 0,
'1',
'2')

AleCruc94
Contributor III
Contributor III
Author

Thank You so much, it works!