<?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: Filter only common values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-only-common-values/m-p/2152774#M49644</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can use these measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;commonFruitCheck =
VAR customersPerFruit =
    CALCULATE (
        DISTINCTCOUNT ( 'Table'[customer] ),
        ALLSELECTED ( 'Table' ),
        VALUES ( 'Table'[fruit] )
    )
VAR chosenCustomers = COUNTROWS ( ALLSELECTED ( 'Table'[customer] ) )
RETURN
    IF ( customersPerFruit = chosenCustomers, 1, BLANK () )&lt;/LI-CODE&gt;
&lt;P&gt;Use it to filter your visual (commonFruitCheck is 1).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#333399"&gt;&lt;EM&gt;If this post helps, then please consider &lt;U&gt;Accept it as the solution&lt;/U&gt; &lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;to help the other members find it more quickly.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Oct 2021 07:10:09 GMT</pubDate>
    <dc:creator>ERD</dc:creator>
    <dc:date>2021-10-25T07:10:09Z</dc:date>
    <item>
      <title>Filter only common values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-only-common-values/m-p/2152561#M49635</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to filter simple table to get only results that are in common for given customers.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now If customer A &amp;amp; B are selected, I'd like to see as a result only fruits they have in common (in this case apple &amp;amp; pear), NOT a summary which i presume is using OR function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your feedback&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 05:47:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-only-common-values/m-p/2152561#M49635</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-25T05:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Filter only common values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-only-common-values/m-p/2152774#M49644</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can use these measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;commonFruitCheck =
VAR customersPerFruit =
    CALCULATE (
        DISTINCTCOUNT ( 'Table'[customer] ),
        ALLSELECTED ( 'Table' ),
        VALUES ( 'Table'[fruit] )
    )
VAR chosenCustomers = COUNTROWS ( ALLSELECTED ( 'Table'[customer] ) )
RETURN
    IF ( customersPerFruit = chosenCustomers, 1, BLANK () )&lt;/LI-CODE&gt;
&lt;P&gt;Use it to filter your visual (commonFruitCheck is 1).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#333399"&gt;&lt;EM&gt;If this post helps, then please consider &lt;U&gt;Accept it as the solution&lt;/U&gt; &lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;to help the other members find it more quickly.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 07:10:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-only-common-values/m-p/2152774#M49644</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2021-10-25T07:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Filter only common values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-only-common-values/m-p/2152864#M49649</link>
      <description>&lt;P&gt;Works like a charm, thank you! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 07:40:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-only-common-values/m-p/2152864#M49649</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-25T07:40:06Z</dc:date>
    </item>
  </channel>
</rss>

