Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
priyarane
Specialist
Specialist

Null inclusion

Hi Team,

How to include null for the below expression

SUM({<%Month = {'Jan'},%Year = {'2016'},CURRENCY = {'$(=$(vCurr))'},INVOLVED_PARTY_NAME =P({<%Month = {'Dec'}, %Year = {'2015'},INVOLVED_PARTY_NAME ={''}>}INVOLVED_PARTY_NAME)>} EAD)

I want the null value for 'INVOLVED_PARTY_NAME'

- Thanks

12 Replies
Chanty4u
MVP
MVP

SUM(IsNull({<%Month = {'Jan'},%Year = {'2016'},CURRENCY = {'$(=$(vCurr))'},INVOLVED_PARTY_NAME =P({<%Month = {'Dec'}, %Year = {'2015'},INVOLVED_PARTY_NAME ={''}>}INVOLVED_PARTY_NAME))>} EAD)

priyarane
Specialist
Specialist
Author

Hi Chanty,

it is wrong

Chanty4u
MVP
MVP

try dis


SUM({<%Month = {'Jan'},%Year = {'2016'},CURRENCY = {'$(=$(vCurr))'},INVOLVED_PARTY_NAME =P({$<%Month = {'Dec'}, %Year = {'2015'},INVOLVED_PARTY_NAME ={"*"}>}INVOLVED_PARTY_NAME)>} EAD)

tresesco
MVP
MVP

Try like:

SUM({<%Month = {'Jan'},%Year = {'2016'},CURRENCY = {'$(=$(vCurr))'},INVOLVED_PARTY_NAME =P({<%Month = {'Dec'}, %Year = {'2015'}>+($-<INVOLVED_PARTY_NAME ={'*'}>)}INVOLVED_PARTY_NAME)>} EAD)

sunny_talwar

May be this:

Sum({<%Month = {'Jan'},%Year = {'2016'}, CURRENCY = {'$(=$(vCurr))'}, INVOLVED_PARTY_NAME = P({<%Month = {'Dec'}, %Year = {'2015'}, INVOLVED_PARTY_NAME ={''}>}INVOLVED_PARTY_NAME) + {"=Len(Trim(INVOLVED_PARTY_NAME)) = 0"}>} EAD)

priyarane
Specialist
Specialist
Author

Hi Tresesco. my result is same as before...

if this is not possible then how to show null values total for INVOLVED_PARTY_NAME

tresesco
MVP
MVP

You can show null related values (real nulls - hope you understand), using the set expression I showed above. I.e. -

Sum({$-<INVOLVED_PARTY_NAME ={'*'}>)EAD) would return data where your INVOLVED_PARTY_NAME is really null. If you have some  non-null values but some spaces or special characters appear as null, you might use expression as Sunny suggested below, however, that would not include the real nulls.

engishfaque
Specialist III
Specialist III

Dear Priya,

Try this one,

//include

INVOLVED_PARTY_NAME ={'Null()'}

or

//exclude

INVOLVED_PARTY_NAME -={'Null()'}

Kind regards,

Ishfaque Ahmed

tyagishaila
Specialist
Specialist

is INVOLVED_PARTY_NAME has NULL values or empty ?


try this,

INVOLVED_PARTY_NAME ={ }