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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
justin_morley
Creator
Creator

Filtering by value to also include null

Hi all, I have a hypothetical dataset like this:

Col1Col2Col3
10A-
20B-
30-X
40C-
50D-

I always want to see the value in Col3 regardless of selection state.

So If I select "B" from Col2 anywhere in my app, I want my straight table to look like this:

Col1Col2Col3
20B-
30-X

If Col3 is not null, Col2 is always null and vice-versa.

Could I employ field triggers to acheive this?

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

You can use a straight chart with the three fields as dimensions and an expression like sum({$+<Col1,Col2,Col3={'X'}>}1). On the presentation tab you can hide the expression column. See attached qvw. If you want to always see any non-null value in Col3 then use '*' instead of 'X'.


talk is cheap, supply exceeds demand

View solution in original post

5 Replies
alexandros17
Partner - Champion III
Partner - Champion III

in presentation tab (properties of your table) uncheck the box "suppress zero values"

justin_morley
Creator
Creator
Author

Hi Alessandro,

Thanks for your reply, but unfortunately this doesn't work.

Filtering by "B" say leaves you with a single row rather than the two rows I require

Justin

alexandros17
Partner - Champion III
Partner - Champion III

could you post your document?

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

You can use a straight chart with the three fields as dimensions and an expression like sum({$+<Col1,Col2,Col3={'X'}>}1). On the presentation tab you can hide the expression column. See attached qvw. If you want to always see any non-null value in Col3 then use '*' instead of 'X'.


talk is cheap, supply exceeds demand
justin_morley
Creator
Creator
Author

Hi Gysbert,

Spot on. Thanks very much for the answer.

Now to get my head around your set expression!

Justin