<?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 Re: Custom Slicer example in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Slicer-example/m-p/3729808#M9012</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/397"&gt;@dm-p&lt;/a&gt;,&lt;BR /&gt;Thanks a lot for your guidance, It will help me to get started !&amp;nbsp;&lt;BR /&gt;Have a nice rest of your day.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2024 07:35:10 GMT</pubDate>
    <dc:creator>ElliotMtx</dc:creator>
    <dc:date>2024-02-28T07:35:10Z</dc:date>
    <item>
      <title>Custom Slicer example</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Slicer-example/m-p/3728309#M9001</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create a custom slicer for a project. I'm a beginner in developping custom visuals and I can't find a basic example of a custom slicer that works. I've looked at the Microsoft Github but they seems outdated as I can't package them without error. The command pbiviz new -t slicer doesn't produce a slicer but the default visual without specifying a template.&lt;BR /&gt;I didn't find any tutorials or minimal working example, can somebody indicate any useful ressource to get started ?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 17:06:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Slicer-example/m-p/3728309#M9001</guid>
      <dc:creator>EMtx</dc:creator>
      <dc:date>2024-02-27T17:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Slicer example</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Slicer-example/m-p/3728730#M9008</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/697255"&gt;@EMtx&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've built slicers previously, but only from &lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/filter-api" target="_self"&gt;the existing documentation&lt;/A&gt; as a reference. Unfortunately, I can't share these as they were developed privately for clients. ultimately, you need to think about:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Constructing a valid filter based on your visual's UI.&lt;/LI&gt;
&lt;LI&gt;Applying this filter to the main window via the filter API.&lt;/LI&gt;
&lt;LI&gt;Restoring your visual's UI state from the &lt;FONT face="courier new,courier"&gt;jsonFilters&lt;/FONT&gt; array that Power BI returns in the visual's &lt;FONT face="courier new,courier"&gt;update&lt;/FONT&gt; method. Bear in mind that Power BI may not apply a filter you request due to considerations it makes to reduce computation effort (such as other visuals on the page not necessarily needing the filter or your filter containing criteria that are invalid for your data model), so you may need to look at this during the lifecycle of your visual, as well as when it is restored on the canvas.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want some recent examples to refer to and possibly clone and build, you can look at the &lt;A href="https://github.com/databrothers-code-storage/text-search-slicer" target="_self"&gt;Text Search Slicer by databrothers&lt;/A&gt; (who open-source their code) or &lt;A href="https://github.com/microsoft/PowerBI-visuals-TextFilter" target="_self"&gt;MS's Text Filter&lt;/A&gt; (which has received some recent-ish updates). These will hopefully give you an idea of how to start working with the filter APIs and how you might think about designing your visual.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 21:36:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Slicer-example/m-p/3728730#M9008</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2024-02-27T21:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Slicer example</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Slicer-example/m-p/3729808#M9012</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/397"&gt;@dm-p&lt;/a&gt;,&lt;BR /&gt;Thanks a lot for your guidance, It will help me to get started !&amp;nbsp;&lt;BR /&gt;Have a nice rest of your day.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 07:35:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Slicer-example/m-p/3729808#M9012</guid>
      <dc:creator>ElliotMtx</dc:creator>
      <dc:date>2024-02-28T07:35:10Z</dc:date>
    </item>
  </channel>
</rss>

