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: 
Anonymous
Not applicable

How make filter selections set to default

Hi

I have multiple charts with various filters , i want to make some of the filter values set to default , i mean something like if i click on a button say Default , all the specified filter values must set to default selection.How do i achive this?

And also as i was adding tabs the performance of my application has been reducing,more calculation less performance...how do i handle this...

Please Suggest....

Thank you

1 Solution

Accepted Solutions
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

Besides applying the Bookmark, you could use Actions to clear selections and to make specific selections in certain fields.

Regarding your Calendar controls, they represent Variables, and those have nothing to do with the selected Fields or Bookmarks. Add another action to set the value of each Variable to the desired date.

Ask me about Qlik Sense Expert Class!

View solution in original post

7 Replies
prieper
Master II
Master II

1. Make a macro - clear all values and then set your desired ones. Alternatively you may use (in version 10) the "Clear"-button, wich resets to the initial state.
2. close all graphs. Additionally you may show them only subj to conditions (less than xxx values selected or the like)

HTH
Peter

Anonymous
Not applicable
Author

Thank you for the reply ,

Actually i have'nt created Macro anytime , and i am using version 9 , could you please point me to a sample app to show how to achive this?

Anonymous
Not applicable
Author

Any help on this??

Not applicable
Author

If you want this implemented using macro you can do the following:

1. To clear all selected values you can issue this statement in your macro.

ActiveDocument.ClearAll false

The false (or true) parameter tells QV whether to clear the "locked" selections or not.

2. To set the selected value you can do something like this:

set fld = ActiveDocument.GetField("<YourField>")
set fldVal = fld.GetNoValues
fldVal.Add
fldVal(0).Text = "<YourSelectionValue>"
fld.SelectValues fldVal

If the field is numeric you also need to set the following properties before the actual SelectValues

fldVal(0).Number = "<YourNumericValue>"
fldVal(0).IsNumeric = true


The sample macro would look like:

Public Sub SetDefaultValue
ActiveDocument.ClearAll false
set fld = ActiveDocument.GetField("<YourField>")
set fldVal = fld.GetNoValues

fldVal.Add
fldVal(0).Text = "<YourSelectionValue>"

if fld.GetProperties.IsNumeric then
fldVal(0).Number = "<YourNumericValue>"
fldVal(0).IsNumeric = true
else
fldVal(0).IsNumeric = false
end if

fld.SelectValues fldVal
End Sub

I hope this helps.

Anonymous
Not applicable
Author

Thank you very much , so i am using Qlikview 9 , implementing action to get the book mark , Here is the sample document of what i am trying to achive....

Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

Besides applying the Bookmark, you could use Actions to clear selections and to make specific selections in certain fields.

Regarding your Calendar controls, they represent Variables, and those have nothing to do with the selected Fields or Bookmarks. Add another action to set the value of each Variable to the desired date.

Ask me about Qlik Sense Expert Class!