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

Supress null values in expression

Hi

I have an expression previously in my straight table and now i have added a dimension and a new expression to the same straight table which resulted null values in the previous expression

Can we supress or remove null values in expression level

Regards

7 Replies
PrashantSangle

Hi,

try like

Sum({<FieldName={"=not isnull(FieldName)"}>}Sales)

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
settu_periasamy
Master III
Master III

Or

=Sum({<FileldName= {"=Len(Trim(FieldName)) > 0"}>}Sales)

Peter_Cammaert
Partner - Champion III
Partner - Champion III

You want to remove all rows that have a NULL value in the first (original) expression column?

Then change your second expression into something like:

=IF (NOT IsNull([LabelOfOriginalExpression]), SecondExpression)

Replace the two words in italics with what you have in your table.

With this trick, we force Expression2 to NULL if the outcome of Expression1 proves to be NULL. NULLs in all expression will cause a row to be suppressed. That is if you didn't change the Show NULL value setting in your table properties.

Best,

Peter

HirisH_V7
Master
Master

Hi,

if(IsNull(expresion, Null(), Dimension)

and select the option to supress if is null

HTH,

Hirish

HirisH
“Aspire to Inspire before we Expire!”
Not applicable
Author

can we remove duplicates in dimension

HirisH_V7
Master
Master

Hi,

You can remove all the null values  like this at back end itself,

LOAD MainKey,

    IF(IsNull(Data),0, Data) as MainData ,

FROM

[$(vExcelPath)\1.xlsx]

(ooxml, embedded labels, table is 1) Where MainKey<>Null();

Hope this Helps,

Hirish

HirisH
“Aspire to Inspire before we Expire!”
amit_saini
Master III
Master III

John,

Try this:

=if (not isnull(FieldName),FieldName)

Thanks,

AS