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: 
Evan0211
Creator II
Creator II

Creating a threshold filter for a table

I have a table that has a field on it with dollar amounts.  I would like to create a threshold filter of pre-defined values (All, 100k, 500k, 1M, etc) and when the user selects the amount, the table will filter to the items that are >= the threshold.  I cannot find any charts or controls that will do this.  I do not have the ability to install any extensions due to restrictions from the data owner.

Thanks!

26 Replies
jwjackso
Specialist III
Specialist III

I think you should create a new straight table with a dimension and several measures just to verify that the measures are working as expected.  If the $(vFilter) measure is the only problem, change the variable input expression to only 2 options and test again.

measure1 = Sum([Total Value])

measure2 = Sum({<[Total Value]={">1000000"}>}[Total Value])

measure3 = Sum($(vFilter)[Total Value])

Evan0211
Creator II
Creator II
Author

Measure 1 works

Measure 2 works

Measure 3 does not.  Same issue as before, it is encoding the < and > to &lt; and &gt;

jwjackso
Specialist III
Specialist III

Where is the vFilter variable created, in my tests I added it to the load script as 

Set vFilter="";

 

Evan0211
Creator II
Creator II
Author

I used the variable interface to create it. 

Edit: I went in the load script and added a new variable but same result with the new variable name.

Evan0211
Creator II
Creator II
Author

I got word that we are on Qlik Sense Enterprise if that helps. 

jwjackso
Specialist III
Specialist III

Does measure3 fail even when you select the All variable which should be empty and return the same value as measure1?

Evan0211
Creator II
Creator II
Author

After trial and error, I found out that this is a known error (https://community.qlik.com/t5/New-to-Qlik-Sense/Variable-Input-extension-Dashboard-Bundle-stopped-wo...)

What I had to do to get it working was set each of my thresholds as their own individual variables and then include the variable name in the dynamic values string.  

In the table column expression, I had to add =Sum($($(vFilter))[Total Value]) to get it to work correctly.  Thanks for all of the help, I really appreciate it.