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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
TomBond77
Specialist
Specialist

Dimension: not isNull

Hi experts

I have a dimension which comes with one value ' ' (null).

I would like to exclude this value by the following formula and surpressing the box "include null values"

=if( isNull(Model), Null() , Model)

This formula is not working as I still see the  Null record.

Any ideas?

Thanks!

Labels (4)
1 Solution

Accepted Solutions
TomBond77
Specialist
Specialist
Author

solved it:

=If( Len( [Model] )>1, [Model] )

View solution in original post

3 Replies
TomBond77
Specialist
Specialist
Author

solved it:

=If( Len( [Model] )>1, [Model] )

RafaelBarrios
Partner - Specialist
Partner - Specialist

Hi @TomBond77 

I would add trim() just to be sure you clean the null and whitespaces

=If( Len( trim([Model]) )>0, [Model] )

 

Help users find answers! Don't forget to mark a solution that worked for you & to smash the like button! 🙂

BrunPierre
Partner - Master II
Partner - Master II

Perhaps there could be spaces. This works every time Len(Trim(Field)) = 0

In your case, If(Len(Trim(Model))=0,Null(),Model)