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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
evansabres
Specialist
Specialist

If statement for dimension, exclude fields, handle nulls

I have a field, 'Group' that I am using as a dimension. I am excluding certain values from the dimension, such as 'ABC', 'DEF', by =IF(Not Match(Group, 'ABC', 'DEF), Group) however, would there be a way to introduce more logic to rename fields that are blank or null?

11 Replies
evansabres
Specialist
Specialist
Author

This works for the structure of the equation, however as the field is Null, it is still showing as Null/Blank in my table.

sunny_talwar

May be try this

=If(Not Match(Group, 'ABC', 'DEF) and Len(Trim(Group)) > 0, Group, 'No Preference')

or this

=If(Len(Trim(Group)) = 0, 'No Preference',
 If(Not Match(Group, 'ABC', 'DEF), Group, 'No Preference'))