Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

making slider to set default position

hai everyone,

how can i set the slider position default to 12.00 A.M to 6.00 A.M. My requirement is whenever i open my QV file it should to display default position in slider and after it should be possible to change the position also when user clicks. In slider i am using "Time" field

How can i work on this, please share your ideas on this.

Thnks

6 Replies
Not applicable
Author

i hav a solution.. it may help u

we can perform actions when we open qlikview file.

goto Settings tab -> Document Properties -> Triggers -> Document Event Triggers -> onopen -> add action.

Not applicable
Author

Hai,

what action i need to take and what conditin should i give.

Please can you give me steps with some example.

Thnks

Not applicable
Author

Hi,

In action you can execute a macro to set your variables used in slider.

This is an exemple for the macro to set variables(BeginDate, EndDate) in today and day befor:

sub InitiateDates

Date1=DATE

Date2=DATE -1

ActiveDocument.GetVariable("BeginDate").SetContent Date1, true

ActiveDocument.GetVariable("EndDate").SetContent Date2, true

end sub



Function DATE (in VB) get the current date

Hope it help

HD

Not applicable
Author

HI Hanen,

Please explain little more clear, i am new to QlikView and also i want to set the Time as Default.

In Slider what Expression should i use.

Thnks

Anonymous
Not applicable
Author

Venkat,
If you're using Time field in slider, setting "default position" is nothing more than making default seelction in time field.
Default selection is simple - you can find dozens of examples here on forums.
(No expressions in slider)

Not applicable
Author

Hi Michael,

Can you pls share your knowledge on having default position for sliders.

i.e; in my file contians one barchart and one slider. In barchart i had taken a GROUP(couple of fields)  as Dimension.

Based on selected field field from group in barchart, the slider gets effected in its min and max values. Upto here its working fine for me.

Now Very huge burden for me is, making the default position in slider for each field in a group from barchart.

How can i set the default position for slider when selects the fields from barchart.

Thnks