Skip to main content
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

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

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
Partner - Champion
Partner - Champion

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

sunny_talwar

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