<?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: disjoint set of products in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/disjoint-set-of-products/m-p/2617971#M76144</link>
    <description>&lt;DIV&gt;&lt;SPAN&gt;Comparison = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR _select =&lt;/SPAN&gt;&lt;SPAN&gt;VALUES (&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'first slicer'[customer]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR _component =&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;CALCULATETABLE(VALUES('Table'[customer]),ALLEXCEPT('Table','Table'[component]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR _exclude=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;VALUES(&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'second slicer'[customer]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR _compare =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS ( EXCEPT ( _select, _exclude ) )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;IF ( ISFILTERED (&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;'first slicer'[customer]&lt;/SPAN&gt;&lt;SPAN&gt;), IF ( _compare &amp;gt; 0, 1 ), 1 )&lt;BR /&gt;&lt;BR /&gt;i have tried change your measure but i can not reach correct solution&lt;/SPAN&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 04 Jul 2022 16:08:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-07-04T16:08:06Z</dc:date>
    <item>
      <title>disjoint set of products</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/disjoint-set-of-products/m-p/2608675#M75587</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;i have the data that contains several types of product and their customers. a product is bought by a couple of customer. i want to see difference bought products between two customers. simple i create two slicer one of them is for selected customer another one is excluded. i manage exclude that is only in excluded but i want to exclude product data that are intersect of selected customer and excluded customer. as you can see in below i create a measure ,but it does not work&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;EXCLUDE? = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR SELECTED= &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALL(FIRST SELECTION TABLE [CUSTOMER COLUMN])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR EXCLUDE= ALLSELECTED(SECOND SELECTION TABLE [CUSTOMER COLUMN])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR INTERSECT=INTERSECT(SELECTED,EXCLUDE)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR RESULT= EXCEPT(SELECTED,INTERSECT) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RESULT&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 29 Jun 2022 08:41:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/disjoint-set-of-products/m-p/2608675#M75587</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-29T08:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: disjoint set of products</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/disjoint-set-of-products/m-p/2609107#M75614</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , this will give a table &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EXCLUDE? =&lt;BR /&gt;VAR SELECTED=&lt;BR /&gt;ALL(FIRST SELECTION TABLE [CUSTOMER COLUMN])&lt;BR /&gt;VAR EXCLUDE= ALLSELECTED(SECOND SELECTION TABLE [CUSTOMER COLUMN])&lt;BR /&gt;VAR RESULT= EXCEPT(SELECTED,INTERSECT)&lt;BR /&gt;RETURN&lt;BR /&gt;RESULT&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use that in a measure&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EXCLUDE? =&lt;BR /&gt;VAR SELECTED=&lt;BR /&gt;ALL(FIRST SELECTION TABLE [CUSTOMER COLUMN])&lt;BR /&gt;VAR EXCLUDE= ALLSELECTED(SECOND SELECTION TABLE [CUSTOMER COLUMN])&lt;BR /&gt;VAR RESULT= EXCEPT(SELECTED,INTERSECT)&lt;BR /&gt;RETURN&lt;BR /&gt;calculate( Sum(Table[Value]), Filter(Table, Table[CUSTOMER COLUMN] in result) , Values(Table[CUSTOMER COLUMN]) ) &lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 10:02:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/disjoint-set-of-products/m-p/2609107#M75614</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-06-29T10:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: disjoint set of products</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/disjoint-set-of-products/m-p/2609127#M75616</link>
      <description>&lt;P&gt;&lt;SPAN&gt;hi&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;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In solution, you mentioned that Sum(Table[Value] phrase but i need list of products(their type is string)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 10:07:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/disjoint-set-of-products/m-p/2609127#M75616</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-29T10:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: disjoint set of products</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/disjoint-set-of-products/m-p/2609141#M75618</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , we create a measure and then put that in visual with some group by display data of that. So have this measure in visual(You can event count rows or products)&amp;nbsp; with product &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, check - Need of an Independent Table in Power BI - Exclude selected value : &lt;A href="https://youtu.be/lOEW-YUrAbE" target="_blank"&gt;https://youtu.be/lOEW-YUrAbE&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this does not help&lt;BR /&gt;Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 10:14:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/disjoint-set-of-products/m-p/2609141#M75618</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-06-29T10:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: disjoint set of products</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/disjoint-set-of-products/m-p/2609808#M75653</link>
      <description>&lt;P&gt;&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;i have tried your solution but i need more disjoint set of product between two brand. i create dumb report for make it more clear. i look forward your ideas.&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;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 14:55:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/disjoint-set-of-products/m-p/2609808#M75653</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-29T14:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: disjoint set of products</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/disjoint-set-of-products/m-p/2617632#M76129</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try this measure in filter pane and set it show items which is 1:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
VAR _select =
    VALUES ( 'first slicer'[customer] )
VAR _component =
    CALCULATETABLE (
        VALUES ( 'Table'[customer] ),
        ALLEXCEPT ( 'Table', 'Table'[component] )
    )
VAR _compare =
    COUNTROWS ( EXCEPT ( _select, _component ) )
RETURN
    IF ( ISFILTERED ( 'first slicer'[customer] ), IF ( _compare &amp;gt; 0, 1 ), 1 )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;screenshot of filter pane:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;And&amp;nbsp; result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pbix in the end you can refer.&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ chenwu zhu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 13:56:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/disjoint-set-of-products/m-p/2617632#M76129</guid>
      <dc:creator>v-chenwuz-msft</dc:creator>
      <dc:date>2022-07-04T13:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: disjoint set of products</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/disjoint-set-of-products/m-p/2617963#M76143</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="320777" data-lia-user-login="v-chenwuz-msft" class="lia-mention lia-mention-user"&gt;v-chenwuz-msft&lt;/a&gt;&amp;nbsp; thank you your effort but it is my bad that i explain my problem wrong. i have tried your measure and it worked properly but i want to listed all products that belong brand 1(from first selection) not belong brand 2(from second selection) at the same time. for example if i select brand 1 in first selection i should products that are from brand 2 but i need 2 slicer which is listed all components that belong and the other one is if it is common for 2 brands than it should remove components but keep not common components between 2 brands&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 16:00:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/disjoint-set-of-products/m-p/2617963#M76143</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-04T16:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: disjoint set of products</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/disjoint-set-of-products/m-p/2617971#M76144</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;Comparison = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR _select =&lt;/SPAN&gt;&lt;SPAN&gt;VALUES (&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'first slicer'[customer]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR _component =&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;CALCULATETABLE(VALUES('Table'[customer]),ALLEXCEPT('Table','Table'[component]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR _exclude=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;VALUES(&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'second slicer'[customer]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR _compare =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS ( EXCEPT ( _select, _exclude ) )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;IF ( ISFILTERED (&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;'first slicer'[customer]&lt;/SPAN&gt;&lt;SPAN&gt;), IF ( _compare &amp;gt; 0, 1 ), 1 )&lt;BR /&gt;&lt;BR /&gt;i have tried change your measure but i can not reach correct solution&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 04 Jul 2022 16:08:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/disjoint-set-of-products/m-p/2617971#M76144</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-04T16:08:06Z</dc:date>
    </item>
  </channel>
</rss>

