Qlik Community

QlikView Layout & Visualizations

Discussion Board for collaboration on QlikView Layout & Visualizations.

Highlighted
Not applicable

Set Variable a Default Value

I have defined one variable "var_zoom" and created a slider.

Although I have got the desired behaviour, I have noticed that, when I click on "Clear" button, that does not affect the niether slider nor the variable nor the whole QlikView sheet.

Why is that? Is it possible to override this behaviour? In bottom line is it posible to set a default value for a variable?

Tags (1)
4 Replies
Not applicable

Re: Set Variable a Default Value

This will allow you to give the variable a default value when you open the document

Document Properties -> Triggers -> On Open -> Add Action -> External -> Set Variable

But you also want it to reset when there is a "clear" on the document?

MVP & Luminary
MVP & Luminary

Re: Set Variable a Default Value

The clear button only clears selections. It does not change variable values. You need to use a Set Variable action to change a variable. You could use a button to execute both a Clear All action and the Set Variable action.


talk is cheap, supply exceeds demand
Not applicable

Re: Set Variable a Default Value

Exactly - I want it to reset when there is a "clear" on a document.

Not applicable

Re: Set Variable a Default Value

So add a button that clears selections and resets the variable in two separate actions