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: 
Not applicable

How do I filter a straight table w/ expressions?

I have a field with the values 'Yes' or 'No'. How do I filter the table to only show 'Yes' values? Without creating a button or filter list.

What I've tried so far is to create a 'match' expression and then hide the null values. However the values converted to 0 or 1, and the 0 values wouldn't suppress.

The field name is: Rights/Options/Warrants


TIA.

1 Solution

Accepted Solutions
marcus_sommer

You could use a condition within the dimension like:

if([Rights/Options/Warrants] = 'Yes', [Rights/Options/Warrants])

and hiding NULL within the dimension. Or you used as respectively within each expression a set analysis like:

sum({< {Rights/Options/Warrants] = {'Yes'}>} AnyValueField)

and hiding NULL within the presentation tab.

- Marcus

View solution in original post

3 Replies
Anonymous
Not applicable
Author

Hi Ben,

Can you apply set analysis to one of the Expressions in your straight table:

{<[Rights/Options/Warrants]={'Yes'}>}

Charlie

marcus_sommer

You could use a condition within the dimension like:

if([Rights/Options/Warrants] = 'Yes', [Rights/Options/Warrants])

and hiding NULL within the dimension. Or you used as respectively within each expression a set analysis like:

sum({< {Rights/Options/Warrants] = {'Yes'}>} AnyValueField)

and hiding NULL within the presentation tab.

- Marcus

Anil_Babu_Samineni

Use this,

if(wildmatch(FieldName.,'Yes')>0

      ,FieldName

      ,'Others'

      ) as <New Field Name>

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful