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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
thewillemzelluf
Creator
Creator

filters and NULL

Hello everyone,

I have a problem with filters. I made an IF statement to exclude a certain group. However, Qlik also excludes the NULL values (which I do not want, I only want to exclude a specific group). Below the statement:

if (room <> 'square', 'turnover', NULL ()) AS "turnover filter"

Thanks in advance!

Greetings, Willem

1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be try this

If(room <> 'square' or Len(Trim(room)) = 0, 'turnover', Null()) as "turnover filter"

View solution in original post

5 Replies
sunny_talwar
MVP
MVP

May be try this

If(room <> 'square' or Len(Trim(room)) = 0, 'turnover', Null()) as "turnover filter"

thewillemzelluf
Creator
Creator
Author

no, unfortunately, it does not work. he still does not take the null values

agigliotti
MVP
MVP

do you want to exclude only the room equal to square ?

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
sunny_talwar
MVP
MVP

Would you be able to share few rows of data with expected output?

thewillemzelluf
Creator
Creator
Author

sorry i made a mistake, now it works