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

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
suvechha_b
Creator III
Creator III

Expression - Only function with null if condition

Hi All,

I am using a table - with dimension Service Id,Risk Category Adjusted Score, RISK_MODEL_EXEN_END_DT,

I have to show the table report when [Risk Model End Execution Id] is NULL.

So, I used the expression -

=Only({$<=if(IsNULL([Risk Model End Execution Id]),'NULL','NOTNULL') >}[Risk Model End Execution Id]

1.PNG

 

but giving me error in expression-

error.PNG

 

Please kindly assist.

 

Thanks

Labels (1)
6 Replies
tresesco
Champion III
Champion III

You might not need only() here. What if you just try:

if(IsNULL([Risk Model End Execution Id]),'NULL','NOTNULL')

suvechha_b
Creator III
Creator III
Author

Hi Tresesco,

I use the expression but it is showing both NULL and NOTNULL.

My requirement is to show only the NULL in my report.

null.PNG

 

Thanks in advance.

tresesco
Champion III
Champion III

Then:

if(IsNULL([Risk Model End Execution Id]),'NULL')

Now if you want to hide all the non null rows, you have to play with suppress option and other expression handling as well.

suvechha_b
Creator III
Creator III
Author

Hi,

How to hide the not null values

Values.png

 

tresesco
Champion III
Champion III

Since you have many expressions, one can have null others not. So this hiding depends on that logic - when do you want to hide the row, when all rows are null/not null, or only this column is null/not null. You have to adjust your other expressions as well accordingly to produce null/not nulls and then you can hide a row while all expressions are having nulls. Otherwise, you have to filter your dimension based on condition/expression. 

There would be many posts regarding this, please search for detailed help.

suvechha_b
Creator III
Creator III
Author

Hi there ,

I have use a straight table -

two dimension - [Service Id] and [Risk Feature Score].

and a table measure : 

if(IsNULL([Risk Model End Execution Id]),'NULL') 

to get the below report.

Now I want to show only with NULL values.

suvechha_b_0-1611125232005.png