<?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: Taking set difference of slicer and values from one table to another in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Taking-set-difference-of-slicer-and-values-from-one-table-to/m-p/3950934#M153437</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="687567" data-lia-user-login="afaro" class="lia-mention lia-mention-user"&gt;afaro&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Here some steps that I want to share, you can check them if they suitable for your requirement.&lt;BR /&gt;Here is my test data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Create a new table&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table 2 = VALUES('Table'[Prouct])&lt;/LI-CODE&gt;
&lt;P&gt;Create measres&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sales amount by Product = 
CALCULATE(
    SUM('Table'[Sales]),
    ALLEXCEPT(
        'Table',
        'Table'[Prouct]
    )
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure 1 = 
IF(
    SELECTEDVALUE('Table'[Prouct]) IN VALUES('Table 2'[Prouct]) &amp;amp;&amp;amp; [Sales amount by Product] &amp;lt;&amp;gt; 0,
    1,
    0
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure 2 = 
IF(
    SELECTEDVALUE('Table'[Prouct]) IN VALUES('Table 2'[Prouct]),
    1,
    IF(
        [Sales amount by Product] = 0,
        1,
        0
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;Appply measure 1 to visual 1 and measure 2 to visaul 2&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;Fianl output&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;Albert He&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt; &lt;/EM&gt;to help the other members find it more quickly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 May 2024 06:34:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-05-27T06:34:25Z</dc:date>
    <item>
      <title>Taking set difference of slicer and values from one table to another</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Taking-set-difference-of-slicer-and-values-from-one-table-to/m-p/3902484#M152068</link>
      <description>&lt;P&gt;I have a slicer where you can select products - A, B, C, D, E.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's say you select products A, B and you get a matrix/table with list of customers and the total sales made to them (non-zero values only). Let's say this is visual 1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once I get this matrix/table with customer list, I want another table/matrix which shows me the total sales made to the same customers in visual 1 but with the remaining products not selected in the slicer i.e. for C, D, E.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I approach this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 14:02:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Taking-set-difference-of-slicer-and-values-from-one-table-to/m-p/3902484#M152068</guid>
      <dc:creator>afaro</dc:creator>
      <dc:date>2024-05-08T14:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Taking set difference of slicer and values from one table to another</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Taking-set-difference-of-slicer-and-values-from-one-table-to/m-p/3902491#M152069</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="687567" data-lia-user-login="afaro" class="lia-mention lia-mention-user"&gt;afaro&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;It depends. How many products do you have in your real data? Can you provide a small dammy sample to work with?&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 14:05:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Taking-set-difference-of-slicer-and-values-from-one-table-to/m-p/3902491#M152069</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-05-08T14:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Taking set difference of slicer and values from one table to another</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Taking-set-difference-of-slicer-and-values-from-one-table-to/m-p/3950934#M153437</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="687567" data-lia-user-login="afaro" class="lia-mention lia-mention-user"&gt;afaro&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Here some steps that I want to share, you can check them if they suitable for your requirement.&lt;BR /&gt;Here is my test data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Create a new table&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table 2 = VALUES('Table'[Prouct])&lt;/LI-CODE&gt;
&lt;P&gt;Create measres&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sales amount by Product = 
CALCULATE(
    SUM('Table'[Sales]),
    ALLEXCEPT(
        'Table',
        'Table'[Prouct]
    )
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure 1 = 
IF(
    SELECTEDVALUE('Table'[Prouct]) IN VALUES('Table 2'[Prouct]) &amp;amp;&amp;amp; [Sales amount by Product] &amp;lt;&amp;gt; 0,
    1,
    0
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure 2 = 
IF(
    SELECTEDVALUE('Table'[Prouct]) IN VALUES('Table 2'[Prouct]),
    1,
    IF(
        [Sales amount by Product] = 0,
        1,
        0
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;Appply measure 1 to visual 1 and measure 2 to visaul 2&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;Fianl output&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;Albert He&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt; &lt;/EM&gt;to help the other members find it more quickly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 06:34:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Taking-set-difference-of-slicer-and-values-from-one-table-to/m-p/3950934#M153437</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-27T06:34:25Z</dc:date>
    </item>
  </channel>
</rss>

