<?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 Filter Results by Multiple Tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Results-by-Multiple-Tables/m-p/3890229#M151722</link>
    <description>&lt;P&gt;I have a data set like the below and am building a report in Power Pivot. Thanks to previous help&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-by-Multiple-Column-Value-Conditions/m-p/3835830" target="_self"&gt;HERE&lt;/A&gt;, I was able to make a pivot table that&amp;nbsp;&lt;STRONG&gt;excluded&lt;/STRONG&gt; any citites from the pivot table that were&amp;nbsp;&lt;STRONG&gt;not&lt;/STRONG&gt; in&amp;nbsp;&lt;STRONG&gt;both&lt;/STRONG&gt; retailers.&amp;nbsp;&lt;SPAN&gt;Or to say, both retailers must be in the City/State for that City/State to remain in the pivot table.&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;For this example, when I pull a pivot table with the new measure "Both Retailers," Phoenix AZ and Springfield ID are excluded.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm now trying to take this one step further and again hitting a wall. There are two fixture types: "Shelf" and "Endcap." My goal is to also&amp;nbsp;&lt;STRONG&gt;exclude&lt;/STRONG&gt; any cities from the pivot table that&amp;nbsp;&lt;STRONG&gt;have&lt;/STRONG&gt; a Shelf.&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;In this instance, the pivot table should now also exclude Los Angeles, CA&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;My current method that is failing:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a measure to count City/State locations with a shelf fixture. This yeilds a value of "1" as only Los Angeles CA has a store with a shelf fixture:&lt;OL&gt;&lt;LI&gt;&lt;!--    StartFragment     --&gt;&lt;P&gt;&lt;SPAN class=""&gt;HasShelf:=&lt;/SPAN&gt;&lt;SPAN class=""&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN class=""&gt;('Dataset'[Fixture]),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;FILTER&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Fixture,Fixture[Fixture] = &lt;/SPAN&gt;&lt;SPAN class=""&gt;"Shelf"&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;!--    EndFragment     --&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Create a measure to total my sales amount where the City/State has both retailers and where the City/State does not have a Shelf.&lt;OL&gt;&lt;LI&gt;&lt;!--    StartFragment     --&gt;&lt;P&gt;&lt;SPAN class=""&gt;BothRtlrsECOnly:=&lt;/SPAN&gt;&lt;SPAN class=""&gt;SUMX&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;City_State,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;IF&lt;/SPAN&gt;&lt;SPAN class=""&gt;( [DistinctRtlr] &amp;gt; 1 &amp;amp;&amp;amp; [HasShelf] &amp;lt; 1 , [Amount], &lt;/SPAN&gt;&lt;SPAN class=""&gt;BLANK&lt;/SPAN&gt;&lt;SPAN class=""&gt;())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;!--    EndFragment     --&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;What I can't understand is that when I manage the data model, this gives me the correct result (total sales = 600). However, when I make the pivot table using this measure, it still includes Los Angeles (though it does &lt;STRONG&gt;exclude&lt;/STRONG&gt; the sales for Retailer A, the retailer that has the shelf. It only pulls the sales for Retailer B, which does not have the shelf).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still very much a DAX novice, I appreciate any help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample dataset &amp;amp; screen shots below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sample Dataset:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Retailer&lt;/TD&gt;&lt;TD&gt;City, State&lt;/TD&gt;&lt;TD&gt;Month&lt;/TD&gt;&lt;TD&gt;Sales&lt;/TD&gt;&lt;TD&gt;Fixture&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Retailer A&lt;/TD&gt;&lt;TD&gt;Los Angeles, CA&lt;/TD&gt;&lt;TD&gt;45292&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;Shelf&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Retailer A&lt;/TD&gt;&lt;TD&gt;Los Angeles, CA&lt;/TD&gt;&lt;TD&gt;45292&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;Endcap&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Retailer A&lt;/TD&gt;&lt;TD&gt;Las Vegas, NV&lt;/TD&gt;&lt;TD&gt;45292&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;Endcap&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Retailer A&lt;/TD&gt;&lt;TD&gt;Springfield, IL&lt;/TD&gt;&lt;TD&gt;45292&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;Endcap&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Retailer A&lt;/TD&gt;&lt;TD&gt;Springfield, ID&lt;/TD&gt;&lt;TD&gt;45292&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;Endcap&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Retailer B&lt;/TD&gt;&lt;TD&gt;Los Angeles, CA&lt;/TD&gt;&lt;TD&gt;45292&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;Endcap&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Retailer B&lt;/TD&gt;&lt;TD&gt;Las Vegas, NV&lt;/TD&gt;&lt;TD&gt;45292&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;Endcap&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Retailer B&lt;/TD&gt;&lt;TD&gt;Springfield, IL&lt;/TD&gt;&lt;TD&gt;45292&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;Endcap&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Retailer B&lt;/TD&gt;&lt;TD&gt;Phoenix, AZ&lt;/TD&gt;&lt;TD&gt;45292&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;Endcap&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 03 May 2024 23:52:34 GMT</pubDate>
    <dc:creator>DoesNotCompute</dc:creator>
    <dc:date>2024-05-03T23:52:34Z</dc:date>
    <item>
      <title>Filter Results by Multiple Tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Results-by-Multiple-Tables/m-p/3890229#M151722</link>
      <description>&lt;P&gt;I have a data set like the below and am building a report in Power Pivot. Thanks to previous help&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-by-Multiple-Column-Value-Conditions/m-p/3835830" target="_self"&gt;HERE&lt;/A&gt;, I was able to make a pivot table that&amp;nbsp;&lt;STRONG&gt;excluded&lt;/STRONG&gt; any citites from the pivot table that were&amp;nbsp;&lt;STRONG&gt;not&lt;/STRONG&gt; in&amp;nbsp;&lt;STRONG&gt;both&lt;/STRONG&gt; retailers.&amp;nbsp;&lt;SPAN&gt;Or to say, both retailers must be in the City/State for that City/State to remain in the pivot table.&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;For this example, when I pull a pivot table with the new measure "Both Retailers," Phoenix AZ and Springfield ID are excluded.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm now trying to take this one step further and again hitting a wall. There are two fixture types: "Shelf" and "Endcap." My goal is to also&amp;nbsp;&lt;STRONG&gt;exclude&lt;/STRONG&gt; any cities from the pivot table that&amp;nbsp;&lt;STRONG&gt;have&lt;/STRONG&gt; a Shelf.&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;In this instance, the pivot table should now also exclude Los Angeles, CA&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;My current method that is failing:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a measure to count City/State locations with a shelf fixture. This yeilds a value of "1" as only Los Angeles CA has a store with a shelf fixture:&lt;OL&gt;&lt;LI&gt;&lt;!--    StartFragment     --&gt;&lt;P&gt;&lt;SPAN class=""&gt;HasShelf:=&lt;/SPAN&gt;&lt;SPAN class=""&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN class=""&gt;('Dataset'[Fixture]),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;FILTER&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Fixture,Fixture[Fixture] = &lt;/SPAN&gt;&lt;SPAN class=""&gt;"Shelf"&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;!--    EndFragment     --&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Create a measure to total my sales amount where the City/State has both retailers and where the City/State does not have a Shelf.&lt;OL&gt;&lt;LI&gt;&lt;!--    StartFragment     --&gt;&lt;P&gt;&lt;SPAN class=""&gt;BothRtlrsECOnly:=&lt;/SPAN&gt;&lt;SPAN class=""&gt;SUMX&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;City_State,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;IF&lt;/SPAN&gt;&lt;SPAN class=""&gt;( [DistinctRtlr] &amp;gt; 1 &amp;amp;&amp;amp; [HasShelf] &amp;lt; 1 , [Amount], &lt;/SPAN&gt;&lt;SPAN class=""&gt;BLANK&lt;/SPAN&gt;&lt;SPAN class=""&gt;())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;!--    EndFragment     --&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;What I can't understand is that when I manage the data model, this gives me the correct result (total sales = 600). However, when I make the pivot table using this measure, it still includes Los Angeles (though it does &lt;STRONG&gt;exclude&lt;/STRONG&gt; the sales for Retailer A, the retailer that has the shelf. It only pulls the sales for Retailer B, which does not have the shelf).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still very much a DAX novice, I appreciate any help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample dataset &amp;amp; screen shots below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sample Dataset:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Retailer&lt;/TD&gt;&lt;TD&gt;City, State&lt;/TD&gt;&lt;TD&gt;Month&lt;/TD&gt;&lt;TD&gt;Sales&lt;/TD&gt;&lt;TD&gt;Fixture&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Retailer A&lt;/TD&gt;&lt;TD&gt;Los Angeles, CA&lt;/TD&gt;&lt;TD&gt;45292&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;Shelf&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Retailer A&lt;/TD&gt;&lt;TD&gt;Los Angeles, CA&lt;/TD&gt;&lt;TD&gt;45292&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;Endcap&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Retailer A&lt;/TD&gt;&lt;TD&gt;Las Vegas, NV&lt;/TD&gt;&lt;TD&gt;45292&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;Endcap&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Retailer A&lt;/TD&gt;&lt;TD&gt;Springfield, IL&lt;/TD&gt;&lt;TD&gt;45292&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;Endcap&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Retailer A&lt;/TD&gt;&lt;TD&gt;Springfield, ID&lt;/TD&gt;&lt;TD&gt;45292&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;Endcap&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Retailer B&lt;/TD&gt;&lt;TD&gt;Los Angeles, CA&lt;/TD&gt;&lt;TD&gt;45292&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;Endcap&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Retailer B&lt;/TD&gt;&lt;TD&gt;Las Vegas, NV&lt;/TD&gt;&lt;TD&gt;45292&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;Endcap&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Retailer B&lt;/TD&gt;&lt;TD&gt;Springfield, IL&lt;/TD&gt;&lt;TD&gt;45292&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;Endcap&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Retailer B&lt;/TD&gt;&lt;TD&gt;Phoenix, AZ&lt;/TD&gt;&lt;TD&gt;45292&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;Endcap&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 23:52:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Results-by-Multiple-Tables/m-p/3890229#M151722</guid>
      <dc:creator>DoesNotCompute</dc:creator>
      <dc:date>2024-05-03T23:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Results by Multiple Tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Results-by-Multiple-Tables/m-p/3890337#M151728</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="723737" data-lia-user-login="DoesNotCompute" class="lia-mention lia-mention-user"&gt;DoesNotCompute&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does the below output meet your requirement?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I attach an example pbix file.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 May 2024 04:49:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Results-by-Multiple-Tables/m-p/3890337#M151728</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2024-05-04T04:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Results by Multiple Tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Results-by-Multiple-Tables/m-p/3900396#M151988</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="608865" data-lia-user-login="DataNinja777" class="lia-mention lia-mention-user"&gt;DataNinja777&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for taking a look at this. Your measure does not produce the desired result - it does make the Grand Total match to the visual on the table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the desired result is to keep the Grand Total as my original measure had it (so 600), but&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Los Angeles should be removed from the table entirely, because it has a Shelf fixture.&lt;/LI&gt;&lt;LI&gt;Retailer B Total should be 300 instead of 500 (because it should not be capturing Los Angeles).&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sure there is something I am not understanding about filter context here, but I cannot figure it out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 00:16:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Results-by-Multiple-Tables/m-p/3900396#M151988</guid>
      <dc:creator>DoesNotCompute</dc:creator>
      <dc:date>2024-05-08T00:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Results by Multiple Tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Results-by-Multiple-Tables/m-p/3904240#M152115</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="723737" data-lia-user-login="DoesNotCompute" class="lia-mention lia-mention-user"&gt;DoesNotCompute&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your follow up and clarification of the issue. I tried to produce your required output in a single formula, but it didn't work, but when I split the measure in two, first producing the measure like below, and then in a separate measure, sumxing it over 'City, State' dimension, it produced your required output.&amp;nbsp; I am not sure why it couldn't be done in one measure, but it must be due to the intricate filter contect related matter as you said.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;In the second measure where it sumxed over the 'City, State' dimension, it is simply like below.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sumx_City_State_BothRtlrsECOnly = sumx(City_State,[BothRtlrsECOnly])&lt;/LI-CODE&gt;
&lt;P&gt;I also encountered similar issues, where it didn't produce the intended output in one long measure, but when I split it out in two measures, it produced the required output.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I attach the pbix file below.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 06:15:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Results-by-Multiple-Tables/m-p/3904240#M152115</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2024-05-09T06:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Results by Multiple Tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Results-by-Multiple-Tables/m-p/3906564#M152178</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="608865" data-lia-user-login="DataNinja777" class="lia-mention lia-mention-user"&gt;DataNinja777&lt;/a&gt;&amp;nbsp; This worked great, thank you very much for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I did not consider using variables within the first measure as an alternative to the excess measures within the file. Very good idea, keeps everything cleaner.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 21:05:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Results-by-Multiple-Tables/m-p/3906564#M152178</guid>
      <dc:creator>DoesNotCompute</dc:creator>
      <dc:date>2024-05-09T21:05:02Z</dc:date>
    </item>
  </channel>
</rss>

