<?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 problem with all except in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/problem-with-all-except/m-p/4836769#M184711</link>
    <description>&lt;P&gt;Dears,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m trying to display the total amount (8M) for each organization in every row of the matrix, but it’s not working as expected.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Org Name&lt;/STRONG&gt; comes from Dim_Organizations&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Recommended Amount&lt;/STRONG&gt; comes from Fact_Table&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Terms&lt;/STRONG&gt; come from Dim_Terms&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Rec Amount&lt;/STRONG&gt; is supposed to display 8M in each row, but instead it’s splitting the value.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Can you please help me identify why this is happening and how to fix it?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Measure&lt;BR /&gt;Rec_Amount =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;[Total Amount (Sum)],&lt;BR /&gt;ALLEXCEPT ( Organizations, Organizations[Organization Name] )&lt;BR /&gt;, ALLEXCEPT(Terms,Terms_years ) )&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Sep 2025 23:14:48 GMT</pubDate>
    <dc:creator>ahmedshalabyy12</dc:creator>
    <dc:date>2025-09-26T23:14:48Z</dc:date>
    <item>
      <title>problem with all except</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/problem-with-all-except/m-p/4836769#M184711</link>
      <description>&lt;P&gt;Dears,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m trying to display the total amount (8M) for each organization in every row of the matrix, but it’s not working as expected.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Org Name&lt;/STRONG&gt; comes from Dim_Organizations&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Recommended Amount&lt;/STRONG&gt; comes from Fact_Table&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Terms&lt;/STRONG&gt; come from Dim_Terms&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Rec Amount&lt;/STRONG&gt; is supposed to display 8M in each row, but instead it’s splitting the value.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Can you please help me identify why this is happening and how to fix it?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Measure&lt;BR /&gt;Rec_Amount =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;[Total Amount (Sum)],&lt;BR /&gt;ALLEXCEPT ( Organizations, Organizations[Organization Name] )&lt;BR /&gt;, ALLEXCEPT(Terms,Terms_years ) )&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2025 23:14:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/problem-with-all-except/m-p/4836769#M184711</guid>
      <dc:creator>ahmedshalabyy12</dc:creator>
      <dc:date>2025-09-26T23:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: problem with all except</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/problem-with-all-except/m-p/4836849#M184713</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="900288" data-lia-user-login="ahmedshalabyy12" class="lia-mention lia-mention-user"&gt;ahmedshalabyy12&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue here that is you are applying this to two different tables which is causing unexpected behavior&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Your current measure:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Rec_Amount =
CALCULATE (
    [Total Amount (Sum)],
    ALLEXCEPT ( Organizations, Organizations[Organization Name] ),
    ALLEXCEPT ( Terms, Terms[TermYears] )
)&lt;/LI-CODE&gt;&lt;P&gt;This is saying "Remove all filters except Organization Name from the Organizations table AND remove all filters except TermYears from the Terms table (This creates conflicting filter contexts)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to use &lt;FONT color="#FF0000"&gt;ALLEXCEPT&lt;/FONT&gt; on the fact table (or use a different approach) to ignore the TermYears filter while keeping the Organization Name filter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So you can use&amp;nbsp;&lt;FONT color="#FF0000"&gt;ALLEXCEPT&lt;/FONT&gt; on the fact table (if possible)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Rec_Amount =
CALCULATE (
    [Total Amount (Sum)],
    ALLEXCEPT ( Fact_Table, Organizations[Organization Name] )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or use&amp;nbsp;&lt;FONT color="#FF0000"&gt;REMOVEFILTERS&lt;/FONT&gt; for more precise control&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Rec_Amount =
CALCULATE (
    [Total Amount (Sum)],
    Organizations[Organization Name] = SELECTEDVALUE(Organizations[Organization Name]),
    REMOVEFILTERS ( Terms )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can also&amp;nbsp;&lt;FONT color="#FF0000"&gt;ALL&lt;/FONT&gt; with &lt;FONT color="#FF0000"&gt;VALUES&lt;/FONT&gt; (most reliable)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Rec_Amount =
CALCULATE (
    [Total Amount (Sum)],
    ALL ( Terms ),
    VALUES ( Organizations[Organization Name] )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;This will:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN&gt;Remove any filtering from the Terms table (including TermYears)&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN&gt;Preserve the current Organization Name filter&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN&gt;Show the total $8M for (Black Futures Lab) in every row of your matrix&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;EM&gt;if this post helps, then I would appreciate a thumbs up&lt;/EM&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;and&amp;nbsp;&lt;STRONG&gt;mark it as the solution&lt;/STRONG&gt;&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;to help the other members find it more quickly.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 27 Sep 2025 06:27:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/problem-with-all-except/m-p/4836849#M184713</guid>
      <dc:creator>Ahmed-Elfeel</dc:creator>
      <dc:date>2025-09-27T06:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: problem with all except</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/problem-with-all-except/m-p/4836908#M184714</link>
      <description>&lt;P&gt;The problem is that you are not removing the filter nor from Terms nor from Organization name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to see 8M everywhere, you need to remove those filters, so please use this code (or a slight variation we might fix later)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Rec_Amount =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CALCULATE (&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; [Total Amount (Sum)],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; REMOVEFILTERS( Organizations[Organization Name] )&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; REMOVEFILTERS( Terms_years )&lt;BR /&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you want to remove filters from other columns, from those tables, you can list them in the rremovefilters call afer a comma&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this helped, please consider giving kudos and mark as a solution&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="273" data-lia-user-login="me" class="lia-mention lia-mention-user"&gt;me&lt;/a&gt; in replies or I'll lose your thread&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Want to check your DAX skills? &lt;A href="https://www.linkedin.com/company/kubisco/" target="_blank"&gt;Answer my biweekly DAX challenges on the kubisco Linkedin page&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Consider voting &lt;A href="https://community.fabric.microsoft.com/t5/Fabric-Ideas/Power-BI-Filter-Pane-as-an-icon-on-the-right-side-bar-in-on/idi-p/4728588" target="_blank"&gt;this Power BI idea&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Francesco Bergamaschi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MBA, M.Eng, M.Econ, Professor of BI&lt;/P&gt;</description>
      <pubDate>Sat, 27 Sep 2025 09:53:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/problem-with-all-except/m-p/4836908#M184714</guid>
      <dc:creator>FBergamaschi</dc:creator>
      <dc:date>2025-09-27T09:53:07Z</dc:date>
    </item>
  </channel>
</rss>

