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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
w0jt4z
Contributor III
Contributor III

If as dimension on filter

Hi,
i tried to use "if" as dimension.
=if (Not IsNull(field),1,0) and it works, I think.
I try to get that dimension on Filter Pane and it give me only one choice, "1", i can't choose the "0" in this condition on Filter Pane (doesn't appear on Filter).

Please Help!

Best Regards,
Wojciech

1 Solution

Accepted Solutions
Mauritz_SA
Partner - Specialist
Partner - Specialist

Hi Wojciech

Have you got access to the table in the load script? Then you can add

if(Not IsNull(field),1,0) as IsNotNullField

to the load script and then use IsNotNullField as the dimension in your filter.

You can have a look at https://community.qlik.com/t5/New-to-QlikView/How-to-select-BLANKS-or-lt-NULL-gt-values/m-p/275021.

Good luck!

Mauritz

View solution in original post

2 Replies
Mauritz_SA
Partner - Specialist
Partner - Specialist

Hi Wojciech

Have you got access to the table in the load script? Then you can add

if(Not IsNull(field),1,0) as IsNotNullField

to the load script and then use IsNotNullField as the dimension in your filter.

You can have a look at https://community.qlik.com/t5/New-to-QlikView/How-to-select-BLANKS-or-lt-NULL-gt-values/m-p/275021.

Good luck!

Mauritz

w0jt4z
Contributor III
Contributor III
Author

It works! 🙂
Thank You very much indeed!

Best Regards,
Wojciech