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

Over-ride a slider range based on a field

Hello....

I'm using a slider for data selections on my [PolicyIncDate] field.

I want to set the minimum date on the slider to 01/01/2000 and the max to max(PolicyIncDate).

But I can't seem to use the min/max boxes AND data / Field = PolicyIncDate at the same time?!?

(the min / max boxs are only enabled when I click the "variables" radio button)

error loading image

Any ideas?? Thanks, Mike

3 Replies
maneshkhottcpl
Partner - Creator III
Partner - Creator III

U have to use the variable, as slider sets the variable value whenever u slide.

Not applicable
Author

Hi Mike,

see the attached example.

Ignore the variable and put in your start and end dates.

Good luck!

Rainer

colinh
Partner - Creator II
Partner - Creator II

Hi Mike

My understanding of a slider, when used with a field, is that it is basically like a listbox - it allows you to select a range a values in a field. As such it will always show all of the values in the field. If you forced it to have a minimum value different from the minimum in the field, then you would never be able to select values below that minimum (assuming you had no other way of selecting in that field). So you'd never be able to select dates below 01/01/2000. If you don't need that data to be selected then maybe what you need to do is only load data into your model after that date. Then your slider would only start from that date.

An alternative would be to use the slider to set two variables and write your chart expressions to only show values between those variables, but it makes your chart expressions a bit more complex.

There may be a way to do what you want with the field value, but I don't think so.