Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi experts,
What is the easiest, or best practice implementation concerning setting default values to filter panes?
I am filtering a fairly simple table chart and have 10 filter panes. I want to set a default value to two of the filters.
Thanks,
Peter
Hi,
Use the bookmark feature at the top of your app to add these default filters and then create a new bookmark giving it a useful name then save the document.
You can have as many as you like to switch to standard selections easily.
Hi Peter,
If you are using a QlikSense Enterprise version: Make your selections in the filters before publishing the app and then publish it. The selections will be maintained.
Also check this link.
Apply default filter (today) on Sense application | Qlik Community
Regards,
Rohan
Hay pctimmco
I had the same problem now solved it this way,
you can try this,
In the above Image you can see that I wanted to select one of the canal when the page is reload. search a lot but fond nothing but i have found a way to do this. for that you going to do the following steps.
1. javascript file add the this script to it,
app.field('canal_name').select([1], true, true);
app.field('this is the filed name you selected for filter pane').select([ this is index number you want to select by default like i want 'Shakhab' so shakhab is by default selected], true, true);
Add this line of code " app.field('canal_name').select([1], true, true); " to javascript file like in above image.
Now when ever I reload the page the it select a the zxy canal by default.
app.field(fld).selectValues([5], true, true);
app.field(fld).selectValues(["Andersson"], true, true);
app.field('name').selectValues(["Shakhab"], 0, true);