<?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 Creating custom slicer in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Creating-custom-slicer/m-p/4394124#M59325</link>
    <description>&lt;P&gt;I have a column name Vehical, having values as shown.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I need to have a slicer in such a way that it will have two option "All Vehicals" &amp;amp; "Car".&lt;/P&gt;&lt;P&gt;if All Vehical is selected the it will show all the values from the table&lt;BR /&gt;and if CAR is selected the it will show the rows having values Maruti, Tata, Kia, Hyunday.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Feb 2025 10:29:56 GMT</pubDate>
    <dc:creator>Practice_PBI</dc:creator>
    <dc:date>2025-02-04T10:29:56Z</dc:date>
    <item>
      <title>Creating custom slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Creating-custom-slicer/m-p/4394124#M59325</link>
      <description>&lt;P&gt;I have a column name Vehical, having values as shown.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I need to have a slicer in such a way that it will have two option "All Vehicals" &amp;amp; "Car".&lt;/P&gt;&lt;P&gt;if All Vehical is selected the it will show all the values from the table&lt;BR /&gt;and if CAR is selected the it will show the rows having values Maruti, Tata, Kia, Hyunday.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 10:29:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Creating-custom-slicer/m-p/4394124#M59325</guid>
      <dc:creator>Practice_PBI</dc:creator>
      <dc:date>2025-02-04T10:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Creating custom slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Creating-custom-slicer/m-p/4395514#M59338</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="923967" data-lia-user-login="Practice_PBI" class="lia-mention lia-mention-user"&gt;Practice_PBI&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please create a custom slicer first and then try to create a measure to filter the visual in a custom way.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Custom Slicer = {"All Vehical","Car"}&lt;/LI-CODE&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Custom Filter = 
VAR _SELECTVALUE = SELECTEDVALUE('Custom Slicer'[Value])
RETURN
SWITCH(_SELECTVALUE,"All Vehical",1,"Car",IF(MAX('Table'[Vehical]) in  {"Maruti", "Tata", "Kia", "Hyunday"},1,0))&lt;/LI-CODE&gt;
&lt;P&gt;Add this measure into visual level filter and set it to show items when value = 1.&lt;/P&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 05:27:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Creating-custom-slicer/m-p/4395514#M59338</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-05T05:27:54Z</dc:date>
    </item>
  </channel>
</rss>

