<?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: Creating custom slicer in Developer</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="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/923967"&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;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vrzhoumsft_0-1738733151959.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1234582iD966945C46BEA0D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vrzhoumsft_0-1738733151959.png" alt="vrzhoumsft_0-1738733151959.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vrzhoumsft_1-1738733159853.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1234583i560F6DC621A2A705/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vrzhoumsft_1-1738733159853.png" alt="vrzhoumsft_1-1738733159853.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vrzhoumsft_2-1738733167046.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1234584i61CC91D8CB76E4D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vrzhoumsft_2-1738733167046.png" alt="vrzhoumsft_2-1738733167046.png" /&gt;&lt;/span&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>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-02-05T05:27:54Z</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;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Practice_PBI_0-1738664383551.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1234204i08E92F5FFA765362/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Practice_PBI_0-1738664383551.png" alt="Practice_PBI_0-1738664383551.png" /&gt;&lt;/span&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="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/923967"&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;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vrzhoumsft_0-1738733151959.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1234582iD966945C46BEA0D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vrzhoumsft_0-1738733151959.png" alt="vrzhoumsft_0-1738733151959.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vrzhoumsft_1-1738733159853.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1234583i560F6DC621A2A705/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vrzhoumsft_1-1738733159853.png" alt="vrzhoumsft_1-1738733159853.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vrzhoumsft_2-1738733167046.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1234584i61CC91D8CB76E4D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vrzhoumsft_2-1738733167046.png" alt="vrzhoumsft_2-1738733167046.png" /&gt;&lt;/span&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>

