<?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: Facts table filtered by 2 slicers built on the same table - problem with calculation (ALL) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Facts-table-filtered-by-2-slicers-built-on-the-same-table/m-p/2554808#M72467</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="289029" data-lia-user-login="fat_cat" class="lia-mention lia-mention-user"&gt;fat_cat&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a trick that you could disable the interaction between [Brand] slicer and the result visual.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please take a look at this document.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/create-reports/service-reports-visual-interactions?tabs=powerbi-desktop" target="_self"&gt;https://docs.microsoft.com/en-us/power-bi/create-reports/service-reports-visual-interactions?tabs=powerbi-desktop&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jay&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jun 2022 08:55:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-06-02T08:55:06Z</dc:date>
    <item>
      <title>Facts table filtered by 2 slicers built on the same table - problem with calculation (ALL)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Facts-table-filtered-by-2-slicers-built-on-the-same-table/m-p/2547217#M71972</link>
      <description>&lt;P&gt;I'm trying to do something which seemed as an extremely simple task, but somehow I can't make it work properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my issue:&lt;/P&gt;&lt;P&gt;I have two tables: 'Products' and 'Facts'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two slicers built on a Products table:&lt;/P&gt;&lt;P&gt;- first one: filters by Segmentation&lt;/P&gt;&lt;P&gt;- the other one: filters by Brand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I have two measures:&lt;/P&gt;&lt;P&gt;- [Sales_Selected_Brand] &lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FACTS[Sales]&lt;/SPAN&gt;&lt;SPAN&gt;) - which is obvious&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;- [Sales_All_Brands]&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Sales_Selected_Brand]&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;'Products'[Brand]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;this one was supposed to sum up all sales for selected segments in the first slicer, regardless of Brand selection in the other slicer. But here is a problem: [Sales_All_Brands] includes sales for all brands, but only for those segments in which selected brand is present in Facts table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example: I have segments A,B,C,D selected in segmentation slicer, and I have Brand1 selected in second slicer (but it only has products / sales in segments A,B,C). I want [Sales_All_Brands]&amp;nbsp; to show the sum of segments A,B,C,D for all brands. But it returns the sum of sales for all brands, but only for segments A,B,C.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess the source of the issue is that both slicers are built on the same Product table. But it must be a way to make it work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS. Here is a &lt;A href="https://drive.google.com/drive/folders/0B16O1ta4iKmTfkZ1d2NvREs2QS1lSnlpdW1SdnI0ODhBdW9ZVnJCUFVHenpOQklyenVDVG8?resourcekey=0-WqF37rMGk9Qp8EvAXY4A4A&amp;amp;usp=sharing" target="_blank" rel="noopener"&gt;dummy data&amp;nbsp;example&lt;/A&gt; with the issue visible.&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 09:33:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Facts-table-filtered-by-2-slicers-built-on-the-same-table/m-p/2547217#M71972</guid>
      <dc:creator>fat_cat</dc:creator>
      <dc:date>2022-05-30T09:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Facts table filtered by 2 slicers built on the same table - problem with calculation (ALL)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Facts-table-filtered-by-2-slicers-built-on-the-same-table/m-p/2547685#M71998</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="289029" data-lia-user-login="fat_cat" class="lia-mention lia-mention-user"&gt;fat_cat&lt;/a&gt; , In case of dimension filter - Single directional. The fact will continue to get filtered from other dimensions and fact filter &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The true all will be&lt;/P&gt;
&lt;P&gt;Sales_All_Brands = CALCULATE([Sales_Selected_Brand], ALL() )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sales_All_Brands = CALCULATE([Sales_Selected_Brand], ALL(Fact) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 11:38:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Facts-table-filtered-by-2-slicers-built-on-the-same-table/m-p/2547685#M71998</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-05-30T11:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Facts table filtered by 2 slicers built on the same table - problem with calculation (ALL)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Facts-table-filtered-by-2-slicers-built-on-the-same-table/m-p/2547801#M72003</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;- thank you for you response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, your proposed solutions are not exactly what I'm looking for.&amp;nbsp; Your formulas ignore both slicers. What I want do, is to calculate [Sales_All_Brands] with&amp;nbsp;only Brand slicer ignored, but with preserved filters from the second slicer (Segmentation).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 12:27:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Facts-table-filtered-by-2-slicers-built-on-the-same-table/m-p/2547801#M72003</guid>
      <dc:creator>fat_cat</dc:creator>
      <dc:date>2022-05-30T12:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Facts table filtered by 2 slicers built on the same table - problem with calculation (ALL)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Facts-table-filtered-by-2-slicers-built-on-the-same-table/m-p/2554808#M72467</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="289029" data-lia-user-login="fat_cat" class="lia-mention lia-mention-user"&gt;fat_cat&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a trick that you could disable the interaction between [Brand] slicer and the result visual.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please take a look at this document.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/create-reports/service-reports-visual-interactions?tabs=powerbi-desktop" target="_self"&gt;https://docs.microsoft.com/en-us/power-bi/create-reports/service-reports-visual-interactions?tabs=powerbi-desktop&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jay&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 08:55:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Facts-table-filtered-by-2-slicers-built-on-the-same-table/m-p/2554808#M72467</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-02T08:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Facts table filtered by 2 slicers built on the same table - problem with calculation (ALL)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Facts-table-filtered-by-2-slicers-built-on-the-same-table/m-p/2556064#M72559</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Jay, thank you. Indeed, it does the trick for this simple example, as I described it (when you only need to display the result)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However in my case (in the actual model I was working on), it was more complex - I needed both measures ([Sales_Selected_Brand] and [Sales_All_Brands]) to be calculated properly and used together for further calculations, so I ended up with different solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wasnt able to find a way to do it in DAX, so I decided to modify my model and separate Brand hierarchy from the Segmentation hierarchy (instead of having one Product table with all product info, I made two separate tables, which can now be filtered independently).&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 17:05:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Facts-table-filtered-by-2-slicers-built-on-the-same-table/m-p/2556064#M72559</guid>
      <dc:creator>fat_cat</dc:creator>
      <dc:date>2022-06-02T17:05:00Z</dc:date>
    </item>
  </channel>
</rss>

