Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Filter from an expression in a chart


I have an expression called Passing in a straight table chart. The expression is:

Maxstring({<[Field1]={1},[Field2]={2},[Date1]={">=$(v_Period1) <=$(v_Period2)"},[Field3]={'YES'}>} [Field4})

Field4 always equals yes. Therefore, if the above set analysis conditions are met, Yes or Null are returned. Null Symbol under presentation is set as No.

This expression needs to be dynamic because v_Period1 and v_Period2 are variables calculated from Min and Max statements that need to change when filtering by department for example.

Our users want to be able to filter the Passing coulmn in the straight table chart to see either No or Yes. I have tried several different things (including an expression in a list box) but cannot make this work.

Does anyone have any suggestions?

Thanks in advance,

Drew Collins

1 Solution

Accepted Solutions
stigchel
Partner - Master
Partner - Master

Well it depends on your data(model). Assuming that you have an id your data somewhere use

=Aggr(If(Field4='Yes','Yes','No'),Id)

It will select Id's accordingly

View solution in original post

13 Replies
buzzy996
Master II
Master II

may be, create variable and list all ur fields in list box of that variable.

and pass that variable as parameter to ur field.

sunny_talwar

Not completely sure if I understand your requirement, would you be able to share a sample?

Best,

Sunny

Anonymous
Not applicable
Author

I noticed that you have a curly bracket in Field4, if that's the actual formula you are using change it to ]

[Field4})

Anonymous
Not applicable
Author

Did you try "Searchable" checkbox?

stigchel
Partner - Master
Partner - Master

A listbox with expression

=If(Field4='Yes','Yes','No')

Or am I missing something?

Not applicable
Author

That was actually a typo while I was posting.

Not applicable
Author

Piet, Field4 always equals Yes.

Not applicable
Author

Sunny, I cannot share an example as this contains highly sensitive information.

stigchel
Partner - Master
Partner - Master

Yes I know, have you tried?