Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi there,
I developed a timeline slicer. Everything works fine except that I realised the selection display won't stay when I shifted page. I know when page changes, the visual will automatically reload and hence runs the constructor and reset the visual to default state. How can I prevent the reload or set the constructor to reload the previous status? Is it the workaround something to do with bookmarking? Ken
Slicer date range displayed
Slicer date range disappeared after reload.
Solved! Go to Solution.
Hi,
You are right, you can restore filter from update options.
If you use API 2.2 or higher, you will be able to read property jsonFilters from Options parameter inside Update method.
Kind Regards,
Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
pbicvsupport@microsoft.com
Hi,
How do you pick the data in the slicer, through a Selction mechanism or Filter API?
If you work with a slicer it is recommended to use the second option.
Also, every time when you change the size of a visual, the Constructor woun't be called, only Update method will be.
Kind Regards,
Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
pbicvsupport@microsoft.com
Hi Evgenii,
I use Filter API. So I have no problem with the filter even though the page changes and the visual reload, the data is still filtered. However, the visual needs to display which is filtered. When page changes or the dashboard refresh, I think the visual will reload and the Constructor will be called. I believe something must be done in the Constructor to call back my previous status.
Hi,
You are right, you can restore filter from update options.
If you use API 2.2 or higher, you will be able to read property jsonFilters from Options parameter inside Update method.
Kind Regards,
Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
pbicvsupport@microsoft.com
Thanks for your help!! It works now.
Check out the July 2025 Power BI update to learn about new features.