Forum Discussion

DavideBono97's avatar
DavideBono97
Helper I
3 years ago
Solved

PowerBi Embedded - Reset filter

Good morning

I have a Embedded Report with pages
Some pages have filters as follows

 

With the eraser I can delete the filters or in any case change them
Is there a client method to be able to reset the report page filter?

 

Thanks in advance

  • ibarrau's avatar
    ibarrau
    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

3 Replies

  • 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,

    • DavideBono97's avatar
      DavideBono97
      Helper 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

      • ibarrau's avatar
        ibarrau
        Super 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