<?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 How to use slicer with conditions in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-slicer-with-conditions/m-p/3365805#M126563</link>
    <description>&lt;P&gt;I have a slicer with few items in it like A,B,C,D_Total,D, E,F,G. I have multi-selection option. However, I want to add a condition here. Whenever I select D and D_Total together, D should be disabled automatically and only D_Total should reflect the rest data in tab.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Aug 2023 17:01:06 GMT</pubDate>
    <dc:creator>shikhavidyarthi</dc:creator>
    <dc:date>2023-08-07T17:01:06Z</dc:date>
    <item>
      <title>How to use slicer with conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-slicer-with-conditions/m-p/3365805#M126563</link>
      <description>&lt;P&gt;I have a slicer with few items in it like A,B,C,D_Total,D, E,F,G. I have multi-selection option. However, I want to add a condition here. Whenever I select D and D_Total together, D should be disabled automatically and only D_Total should reflect the rest data in tab.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 17:01:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-slicer-with-conditions/m-p/3365805#M126563</guid>
      <dc:creator>shikhavidyarthi</dc:creator>
      <dc:date>2023-08-07T17:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to use slicer with conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-slicer-with-conditions/m-p/3369420#M126768</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="445515" data-lia-user-login="shikhavidyarthi" class="lia-mention lia-mention-user"&gt;shikhavidyarthi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you to create an unrelated Dimitems table for slicer.&lt;/P&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Filter = 
VAR _VALUES =
    VALUES ( DimItems[Items] )
VAR _VALUESINCONDITION1 =
    FILTER ( _VALUES, [Items] &amp;lt;&amp;gt; "D" )
RETURN
    IF (
        ISFILTERED ( DimItems[Items] ),
        IF (
            AND ( "D" IN _VALUES, "D_Total" IN _VALUES ),
            IF ( MAX ( 'Table'[Items] ) IN _VALUES &amp;amp;&amp;amp; MAX ( 'Table'[Items] ) &amp;lt;&amp;gt; "D", 1, 0 ),
            IF ( MAX ( 'Table'[Items] ) IN _VALUES, 1, 0 )
        ),
        1)&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;&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;</description>
      <pubDate>Tue, 08 Aug 2023 03:04:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-slicer-with-conditions/m-p/3369420#M126768</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-08T03:04:03Z</dc:date>
    </item>
  </channel>
</rss>

