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: 
ValeriaBonini
Partner - Creator
Partner - Creator

Filter by Min and Max value from user input

Hi, I have 2 input box in my dashboard, the user will write a min and max value of the "TotalCosts" and the dashboard will show only values between these 2 values.

ValeriaBonini_0-1697452607700.png

 

 

1 Reply
Happy_Mask_Salesman
Partner - Contributor III
Partner - Contributor III

Hi Valeria.

With the two input boxes, I would store their values into two variables (vMin and vMax).

In the table expression, I would have a formula like this:

if( ($(vMin) < Sum([Field])) and (Sum([Field]) < $(vMax)),
Sum([Field])

)

I don't like the fact of using the if() function, which can result in performance loss on chart calculation, depending on the size and relationships in the data model, but nothing comes to my mind currently.

Also, I would recommend checking "disable showing zeroes" on Data handling.

I hope this might can be the solution you're seeking for.

Regards.