Forum Discussion
PowerBi Embedded - Reset filter
- 3 years ago
Ok. You can remove from your code the settings -> pane -> filter. That way the filter pane will show if it is visible in the report, if the owner hids it then it won't be there.
In order to "restore filters" you can ask them to add a button and create a bookmark that will save data filters to take them back. I guess if you just refresh the whole page it should restore the filters to default too, but I'm not sure.
I hope that make sense
Hi. If you don't want the user to change those filters the best practice would be hid the filter pane. You can do it when editing the report or by code if you are embedding with javascript.
The reports at service can be loaded as default if you remove the persist of users filters to reset them each load of the page, but I think that's only for Service, I always thought the report was reset by default each time it loads as embedded. I just wanted to mention that because it might be usefull.
I hope that helps,
- DavideBono973 years agoHelper I
Thanks for the reply
I embedded report with javascript
I am interested that the user can change the filters
But I'd like to somehow restore them while viewing the embedded report with the javascript method, if possible
This is not about persistentfilter- ibarrau3 years agoSuper User
Ok. You can remove from your code the settings -> pane -> filter. That way the filter pane will show if it is visible in the report, if the owner hids it then it won't be there.
In order to "restore filters" you can ask them to add a button and create a bookmark that will save data filters to take them back. I guess if you just refresh the whole page it should restore the filters to default too, but I'm not sure.
I hope that make sense