<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Custom date slicer with persistProperties  commented in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-date-slicer-with-persistProperties-commented/m-p/4760381#M12655</link>
    <description>&lt;P&gt;I’m currently stuck on a Power BI visualization issue related to bookmarks and slicers, and I have a unique requirement.&lt;/P&gt;&lt;P&gt;I have 3 funds: F1, F2, and F3, and I’ve created a Button for each fund.&lt;BR /&gt;Each fund has 3 different subpages: Overview, Projections, and Portfolio.&lt;BR /&gt;Each subpage contains visuals specific to that fund. (Attached sample image)&lt;/P&gt;&lt;P&gt;I’ve created bookmarks accordingly. However, the problem is with the Date slicer. Since bookmarks preserve the slicer’s state, the date selection is always fixed to what was selected when the bookmark was created. I want the Date slicer to always default to the latest date from the date_dim table, regardless of the bookmark.&lt;/P&gt;&lt;P&gt;I tried unchecking the Data option in the bookmark, but that causes other issues. I have hidden slicers that dynamically filter the selected fund when the corresponding button is clicked. Disabling the Data option prevents those fund slicers from working correctly.&lt;/P&gt;&lt;P&gt;Each visual should display data only for the respective fund selected.&lt;/P&gt;&lt;P&gt;After some research, I found that this is a known limitation in Power BI — you cannot exclude only one slicer (like Date) from a bookmark while retaining others.&lt;/P&gt;&lt;P&gt;As a workaround, I explored the idea of customizing a visual, such as the slicer from this GitHub repo:&lt;BR /&gt;&lt;A href="https://github.com/microsoft/powerbi-visuals-timeline" target="_blank"&gt;https://github.com/microsoft/powerbi-visuals-timeline&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I commented out the this.host.persistProperties line to stop it from persisting the selection state. But after building and uploading the custom visual to Power BI, it doesn’t seem to work , is there other way to solve this problem? I need a date slicer with provision to exclude persistent or any different approach to this problem&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jul 2025 18:52:21 GMT</pubDate>
    <dc:creator>scoder</dc:creator>
    <dc:date>2025-07-11T18:52:21Z</dc:date>
    <item>
      <title>Custom date slicer with persistProperties  commented</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-date-slicer-with-persistProperties-commented/m-p/4760381#M12655</link>
      <description>&lt;P&gt;I’m currently stuck on a Power BI visualization issue related to bookmarks and slicers, and I have a unique requirement.&lt;/P&gt;&lt;P&gt;I have 3 funds: F1, F2, and F3, and I’ve created a Button for each fund.&lt;BR /&gt;Each fund has 3 different subpages: Overview, Projections, and Portfolio.&lt;BR /&gt;Each subpage contains visuals specific to that fund. (Attached sample image)&lt;/P&gt;&lt;P&gt;I’ve created bookmarks accordingly. However, the problem is with the Date slicer. Since bookmarks preserve the slicer’s state, the date selection is always fixed to what was selected when the bookmark was created. I want the Date slicer to always default to the latest date from the date_dim table, regardless of the bookmark.&lt;/P&gt;&lt;P&gt;I tried unchecking the Data option in the bookmark, but that causes other issues. I have hidden slicers that dynamically filter the selected fund when the corresponding button is clicked. Disabling the Data option prevents those fund slicers from working correctly.&lt;/P&gt;&lt;P&gt;Each visual should display data only for the respective fund selected.&lt;/P&gt;&lt;P&gt;After some research, I found that this is a known limitation in Power BI — you cannot exclude only one slicer (like Date) from a bookmark while retaining others.&lt;/P&gt;&lt;P&gt;As a workaround, I explored the idea of customizing a visual, such as the slicer from this GitHub repo:&lt;BR /&gt;&lt;A href="https://github.com/microsoft/powerbi-visuals-timeline" target="_blank"&gt;https://github.com/microsoft/powerbi-visuals-timeline&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I commented out the this.host.persistProperties line to stop it from persisting the selection state. But after building and uploading the custom visual to Power BI, it doesn’t seem to work , is there other way to solve this problem? I need a date slicer with provision to exclude persistent or any different approach to this problem&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jul 2025 18:52:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-date-slicer-with-persistProperties-commented/m-p/4760381#M12655</guid>
      <dc:creator>scoder</dc:creator>
      <dc:date>2025-07-11T18:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Custom date slicer with persistProperties  commented</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-date-slicer-with-persistProperties-commented/m-p/4789169#M12714</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="617436" data-lia-user-login="scoder" class="lia-mention lia-mention-user"&gt;scoder&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="0" data-end="181"&gt;You're absolutely right — you're facing a &lt;STRONG data-start="42" data-end="92"&gt;classic Power BI bookmarks vs slicers conflict&lt;/STRONG&gt;, and your use case is quite complex but not uncommon in real-world enterprise reporting.&lt;/P&gt;
&lt;P data-start="183" data-end="206"&gt;To summarize your need:&lt;/P&gt;
&lt;UL data-start="208" data-end="524"&gt;
&lt;LI data-start="208" data-end="329"&gt;
&lt;P data-start="210" data-end="329"&gt;You have &lt;STRONG data-start="219" data-end="244"&gt;buttons and bookmarks&lt;/STRONG&gt; switching between funds (F1, F2, F3) and subpages (Overview, Projections, Portfolio)&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="330" data-end="385"&gt;
&lt;P data-start="332" data-end="385"&gt;You want fund filtering to be preserved via bookmarks&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="386" data-end="524"&gt;
&lt;P data-start="388" data-end="524"&gt;But you &lt;STRONG data-start="396" data-end="449"&gt;do not want the Date slicer state to be locked in&lt;/STRONG&gt; by the bookmarks — instead, you want it to &lt;STRONG data-start="493" data-end="524"&gt;always show the latest date&lt;/STRONG&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P data-start="526" data-end="738"&gt;You're also right that Power BI &lt;STRONG data-start="558" data-end="644"&gt;does not currently support selectively excluding slicer state for specific visuals&lt;/STRONG&gt; while keeping others — the &lt;STRONG data-start="672" data-end="680"&gt;Data&lt;/STRONG&gt; option in bookmarks applies to &lt;EM data-start="712" data-end="737"&gt;all slicers and filters&lt;/EM&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#800000"&gt;Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2025 15:44:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-date-slicer-with-persistProperties-commented/m-p/4789169#M12714</guid>
      <dc:creator>johnbasha33</dc:creator>
      <dc:date>2025-08-06T15:44:24Z</dc:date>
    </item>
  </channel>
</rss>

