<?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: Slicer with overlapping values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-with-overlapping-values/m-p/2409651#M63417</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply. It seems correct intutively, but I'm unable to implement it in power BI. When trying to create a relationship between 'New Table'[Category] to 'Existing Table'[Category], it says that the relationship could not be created becuase one of the columns must contain unique values. In fact, I don't even see the option of 'many-to-many' cardinality in the dropdown list. Does it require creation of an intermediate table with unique values? Thanks.&lt;/P&gt;&lt;P&gt;To clarify, I'm using Power BI Desktop Optimized for Power BI Report Server - May 2021.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Mar 2022 15:23:04 GMT</pubDate>
    <dc:creator>047</dc:creator>
    <dc:date>2022-03-22T15:23:04Z</dc:date>
    <item>
      <title>Slicer with overlapping values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-with-overlapping-values/m-p/2400217#M62775</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;A newbie here. I've tried searching in the forum without luck. I'm looking to apply filter on a set of values where some of the rows may belong to mulitple categories. For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ItemName&lt;/TD&gt;&lt;TD&gt;Category&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Apple&lt;/TD&gt;&lt;TD&gt;Fruit&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Potato&lt;/TD&gt;&lt;TD&gt;Vegetable&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Tomato&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Both&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to add a filter(slicer) on Category, but it should only show Fruit &amp;amp; Vegetable as the filter catogires. When selecting fruit, both tomato &amp;amp; apple should be returned, and similarly both tomato &amp;amp; potato when filtered on vegetable. Trying to create a new measure as the filter without luck. Can you pls help? Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 09:57:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-with-overlapping-values/m-p/2400217#M62775</guid>
      <dc:creator>047</dc:creator>
      <dc:date>2022-03-17T09:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer with overlapping values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-with-overlapping-values/m-p/2400718#M62807</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="316437" data-lia-user-login="047" class="lia-mention lia-mention-user"&gt;047&lt;/a&gt; , Create a new table like this join with the above tbale many to many bi-direction and use cat name for filter&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="264"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="119"&gt;Category&lt;/TD&gt;
&lt;TD width="145"&gt;Cat Name&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="119"&gt;Fruit&lt;/TD&gt;
&lt;TD width="145"&gt;Fruit&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="119"&gt;Vegetable&lt;/TD&gt;
&lt;TD width="145"&gt;Vegetable&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="119"&gt;Both&lt;/TD&gt;
&lt;TD width="145"&gt;Fruit&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Both&lt;/TD&gt;
&lt;TD width="145"&gt;Vegetable&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Thu, 17 Mar 2022 13:17:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-with-overlapping-values/m-p/2400718#M62807</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-03-17T13:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer with overlapping values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-with-overlapping-values/m-p/2408689#M63337</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="316437" data-lia-user-login="047" class="lia-mention lia-mention-user"&gt;047&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Has your problem been solved by&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;'s solution, if yes,&amp;nbsp;&lt;SPAN&gt;please consider&amp;nbsp;a&lt;/SPAN&gt;ccept it as the solution&lt;SPAN&gt;&amp;nbsp;to help the other members find it more quickly. If not, please feel free to let me know.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;BR /&gt;Community Support Team _ kalyj&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 07:49:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-with-overlapping-values/m-p/2408689#M63337</guid>
      <dc:creator>v-yanjiang-msft</dc:creator>
      <dc:date>2022-03-22T07:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer with overlapping values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-with-overlapping-values/m-p/2409651#M63417</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply. It seems correct intutively, but I'm unable to implement it in power BI. When trying to create a relationship between 'New Table'[Category] to 'Existing Table'[Category], it says that the relationship could not be created becuase one of the columns must contain unique values. In fact, I don't even see the option of 'many-to-many' cardinality in the dropdown list. Does it require creation of an intermediate table with unique values? Thanks.&lt;/P&gt;&lt;P&gt;To clarify, I'm using Power BI Desktop Optimized for Power BI Report Server - May 2021.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 15:23:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-with-overlapping-values/m-p/2409651#M63417</guid>
      <dc:creator>047</dc:creator>
      <dc:date>2022-03-22T15:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer with overlapping values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-with-overlapping-values/m-p/2409838#M63438</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;If you set up your model a bit different it it easier.&lt;/P&gt;&lt;P&gt;Please see attached. I hope this helps!&lt;A title="Fruit Slicer" href="https://drive.google.com/file/d/1IHA0JL2M-_il6S6N_ggGP8Jq_MR0812K/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1IHA0JL2M-_il6S6N_ggGP8Jq_MR0812K/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 14:38:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-with-overlapping-values/m-p/2409838#M63438</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-03-22T14:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer with overlapping values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-with-overlapping-values/m-p/2411066#M63513</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="316437" data-lia-user-login="047" class="lia-mention lia-mention-user"&gt;047&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;If your sample cannot make relationship, you can try this method.&lt;/P&gt;
&lt;P&gt;1.Create a table with all categories, donn't make relationship between the two tables.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. Create a measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Check =
IF (
    NOT ( ISFILTERED ( 'Table (2)'[Category] ) ),
    1,
    IF (
        ISFILTERED ( 'Table (2)'[Category] )
            &amp;amp;&amp;amp; (
                MAX ( 'Table'[Category] ) = SELECTEDVALUE ( 'Table (2)'[Category] )
                    || MAX ( 'Table'[Category] ) = "Both"
            ),
        1
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;3.Put the new category table in the slicer, and put the measure in the ItemName visual filter, select the value is 1.&lt;/P&gt;
&lt;P&gt;Get the correct result.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I attach my sample below for reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ kalyj&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 03:49:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-with-overlapping-values/m-p/2411066#M63513</guid>
      <dc:creator>v-yanjiang-msft</dc:creator>
      <dc:date>2022-03-23T03:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer with overlapping values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-with-overlapping-values/m-p/2427917#M64549</link>
      <description>&lt;P&gt;Thanks Kalyj.&lt;/P&gt;&lt;P&gt;Sorry for my late reply. I was a bit preoccupied and couldn't check your solution. As you've already tested, your solution works well. Sorry for not being clear enough with my requirement, but my case is a little bit different.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, my Category slicer is set to single select, so I modified the measure to exclude the check for isfiltered.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check2 =&lt;BR /&gt;IF( MAX ( 'Table'[Category] ) = SELECTEDVALUE ( 'Table (2)'[Category] ) || MAX ( 'Table'[Category] ) = "Both",1,0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, In my case, there're multiple visuals on the same/different pages of the report. I was unable to set the measure Check or Check2 as a page/report level filter. Any suggestions?&lt;/P&gt;&lt;P&gt;What I'm doing as a temporary workaround is to duplicate all records where category is 'both'. One of the duplicated rows has Category set as 'Vegetable' &amp;amp; the other row as 'Fruit'. Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 20:51:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-with-overlapping-values/m-p/2427917#M64549</guid>
      <dc:creator>047</dc:creator>
      <dc:date>2022-03-30T20:51:51Z</dc:date>
    </item>
  </channel>
</rss>

