<?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: Venn Diagram pieces with slicers in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Venn-Diagram-pieces-with-slicers/m-p/5127942#M187347</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="337817" data-lia-user-login="Thigs" class="lia-mention lia-mention-user"&gt;Thigs&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you for reaching out to the Microsoft Fabric Community Forum. Also, thanks to&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="861055" data-lia-user-login="Zanqueta" class="lia-mention lia-mention-user"&gt;Zanqueta&lt;/a&gt;,&amp;nbsp; for his inputs on this thread.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Great to hear that the INTERSECT approach helped resolve the original issue thanks for confirming.&lt;/P&gt;
&lt;P&gt;Regarding your follow-up question, the “Both” values going blank when selecting either Retail or Online is expected behaviour. When the slicer filters the data to a single channel, the dataset no longer contains both channels at the same time, so the INTERSECT result becomes empty.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;If you would prefer the “Both” values to remain visible even when one channel is selected, you could adjust the measure, so the calculation ignores the slicer filter on the Channel column while still respecting other report filters. This can be done using functions such as REMOVEFILTERS('Data'[Channel]) or ALL('Data'[Channel]) within the measure.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;This way, the Both calculations can still evaluate Retail and Online together, regardless of the slicer selection.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thank you for using the Microsoft Fabric Community Forum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Mar 2026 06:51:47 GMT</pubDate>
    <dc:creator>v-kpoloju-msft</dc:creator>
    <dc:date>2026-03-09T06:51:47Z</dc:date>
    <item>
      <title>Venn Diagram pieces with slicers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Venn-Diagram-pieces-with-slicers/m-p/5127085#M187334</link>
      <description>&lt;P&gt;Hi! I have data trying to see if certain SKUs are sold in our retail space or online space. I am trying to calculate the number of skus sold online, sold in retail, sold in both, sold only online, and sold only in retail (basically the pieces of a Venn Diagram).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to get all the calculations correctly - HOWEVER - when I use a slicer to then select retail or online, the calculations become incorrect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Formulas so far -&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;TotalSKUsUnfiltered&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Data'&lt;/SPAN&gt;&lt;SPAN&gt;[SKU Code]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Data'&lt;/SPAN&gt;&lt;SPAN&gt;[Channel]&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;))&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RetailSKUs&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Data'&lt;/SPAN&gt;&lt;SPAN&gt;[SKU Code]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Data'&lt;/SPAN&gt;&lt;SPAN&gt;[Channel]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;'Data'&lt;/SPAN&gt;&lt;SPAN&gt;[Channel]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"Retail"&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;))&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RetailOnlySKUs&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;TotalSKUsUnfiltered&lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;RetailSKUs&lt;BR /&gt;&lt;BR /&gt;However, when I select "Retail", the number of SKUs increases from what it should be. Any assistance would be greatly appreciated!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 06 Mar 2026 17:10:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Venn-Diagram-pieces-with-slicers/m-p/5127085#M187334</guid>
      <dc:creator>Thigs</dc:creator>
      <dc:date>2026-03-06T17:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Venn Diagram pieces with slicers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Venn-Diagram-pieces-with-slicers/m-p/5127113#M187336</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="337817" data-lia-user-login="Thigs" class="lia-mention lia-mention-user"&gt;Thigs&lt;/a&gt;&amp;nbsp;&amp;nbsp;INTERSECT is indeed an elegant and robust way to construct the different parts of your Venn diagram (Retail, Online, Both, Retail only, Online only). This approach works directly with sets of SKUs, which helps avoid many of the context issues you are encountering when slicers are applied.&lt;/P&gt;
&lt;P&gt;The key idea is to:&lt;BR /&gt;Build a set (table) of SKUs that are sold in Retail.&lt;BR /&gt;Build a set of SKUs that are sold Online.&lt;BR /&gt;Use INTERSECT to find SKUs present in both sets.&lt;BR /&gt;Use EXCEPT to find SKUs that are only in one channel.&lt;BR /&gt;All of this should be done in a way that respects your report filters and slicers.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;1. Define the SKU sets per channel&lt;/P&gt;
&lt;P&gt;These expressions return a table of distinct SKUs for each channel, while preserving the current filter context (including other slicers such as date, category, etc.):&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;RetailSet :=&lt;BR /&gt;CALCULATETABLE(&lt;BR /&gt;VALUES ( 'Data'[SKU Code] ),&lt;BR /&gt;KEEPFILTERS ( 'Data'[Channel] = "Retail" )&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;OnlineSet :=&lt;BR /&gt;CALCULATETABLE(&lt;BR /&gt;VALUES ( 'Data'[SKU Code] ),&lt;BR /&gt;KEEPFILTERS ( 'Data'[Channel] = "Online" )&lt;BR /&gt;)&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;2. SKUs sold in both channels (intersection)&lt;BR /&gt;BothSKUs :=&lt;BR /&gt;COUNTROWS (&lt;BR /&gt;INTERSECT ( RetailSet, OnlineSet )&lt;BR /&gt;)&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;3. SKUs sold only in Retail&lt;BR /&gt;RetailOnlySKUs :=&lt;BR /&gt;COUNTROWS (&lt;BR /&gt;EXCEPT ( RetailSet, OnlineSet )&lt;BR /&gt;)&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. SKUs sold only Online&lt;BR /&gt;OnlineOnlySKUs :=&lt;BR /&gt;COUNTROWS (&lt;BR /&gt;EXCEPT ( OnlineSet, RetailSet )&lt;BR /&gt;)&lt;BR /&gt;5. Total SKUs (if needed)&lt;BR /&gt;If you also need a simple total that respects the current filters:&lt;BR /&gt;TotalSKUs :=&lt;BR /&gt;DISTINCTCOUNT ( 'Data'[SKU Code] )&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2026 18:13:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Venn-Diagram-pieces-with-slicers/m-p/5127113#M187336</guid>
      <dc:creator>Zanqueta</dc:creator>
      <dc:date>2026-03-06T18:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Venn Diagram pieces with slicers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Venn-Diagram-pieces-with-slicers/m-p/5127171#M187339</link>
      <description>&lt;P&gt;This was very helpful, thank you! I had never used intersect before, that is exactly what I needed!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My one thought - currently, the "Both" option goes blank when I select one or the other options. Could I have it remain at the current value if I select one or the other option?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2026 20:24:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Venn-Diagram-pieces-with-slicers/m-p/5127171#M187339</guid>
      <dc:creator>Thigs</dc:creator>
      <dc:date>2026-03-06T20:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Venn Diagram pieces with slicers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Venn-Diagram-pieces-with-slicers/m-p/5127942#M187347</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="337817" data-lia-user-login="Thigs" class="lia-mention lia-mention-user"&gt;Thigs&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you for reaching out to the Microsoft Fabric Community Forum. Also, thanks to&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="861055" data-lia-user-login="Zanqueta" class="lia-mention lia-mention-user"&gt;Zanqueta&lt;/a&gt;,&amp;nbsp; for his inputs on this thread.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Great to hear that the INTERSECT approach helped resolve the original issue thanks for confirming.&lt;/P&gt;
&lt;P&gt;Regarding your follow-up question, the “Both” values going blank when selecting either Retail or Online is expected behaviour. When the slicer filters the data to a single channel, the dataset no longer contains both channels at the same time, so the INTERSECT result becomes empty.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;If you would prefer the “Both” values to remain visible even when one channel is selected, you could adjust the measure, so the calculation ignores the slicer filter on the Channel column while still respecting other report filters. This can be done using functions such as REMOVEFILTERS('Data'[Channel]) or ALL('Data'[Channel]) within the measure.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;This way, the Both calculations can still evaluate Retail and Online together, regardless of the slicer selection.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thank you for using the Microsoft Fabric Community Forum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2026 06:51:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Venn-Diagram-pieces-with-slicers/m-p/5127942#M187347</guid>
      <dc:creator>v-kpoloju-msft</dc:creator>
      <dc:date>2026-03-09T06:51:47Z</dc:date>
    </item>
  </channel>
</rss>

