Forum Discussion
Custom Date Slicer noting working on initial load when hidden with bookmark
Thanks dm-p for your response, that was my fear. Would it possible to listen for the report load even and filter the data while the visual is hidden?
Or maybe I can "hide" my slicer in my React component behind a button and only show the slicer when the button is clicked?
Hi Anonymous,
Your visual must be visible on the canvas (according to Power BI) for any active filters to apply. Power BI won't care what your visual is displaying within its iframe, so I suggest you update your visual's UI accordingly with a suitable component if you want it 'hidden' for the end user at a specific point. When the filter is 'visible,' you would restore the conventional UI for users in your app via logic.
Regards,
Daniel
- Anonymous2 years agoNot applicable
dm-p thank you for the advice. I think this approch would work but it causes some layout issue with my report.
Alternativly, would it be possible to create a second visual that displays nothing and just applies a filter on report load? I tried this approach by can seem to get the two visuals to synchronize when I load the other hidden visual. My dataview for the second visual is always filtered and can seem to find a way to remove the filter of the first visual.