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 Condition

How to Add a filter for: Margin > X and Margin < X

13 Replies
hic
Former Employee
Former Employee

The proper way to let users set filters in QlikView is to let them click in a list box. If there are too many values in the Margin list box, then you can create an extra field in the script, e.g.

class( Margin,100 ) as MarginClasses

Not applicable
Author

I tried as below:

1. create 2 input boxes. One for From and second for To value

2. Then in expression: I have

sum( {$<Margin = {"<=$(vTo)>=$(vFrom)"}>} Margin)

This is not working as desired although it filters some data in report.

Any idea whats wrong in this expression?

Not applicable
Author

class( Margin,100 ) as MarginClasses

above statement is giving error.

Margin is calculated as Revenue - Actual

Not applicable
Author

Can someone suggest why below expression is not working?

sum( {$<Margin = {"<=$(vTo)>=$(vFrom)"}>} Margin)

where vTo and vFrom are variables