<?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: Calculate function not respecting filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-function-not-respecting-filter/m-p/3275050#M121478</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="557464" data-lia-user-login="jkapso751" class="lia-mention lia-mention-user"&gt;jkapso751&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;Measure2 =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;[Measure1],&lt;BR /&gt;KEEPFILTERS ( 'DATA'[Category] IN { "CATEGORY1", "CATEGORY2" } )&lt;BR /&gt;)&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jun 2023 15:59:25 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-06-08T15:59:25Z</dc:date>
    <item>
      <title>Calculate function not respecting filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-function-not-respecting-filter/m-p/3275028#M121477</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to create a measure (#2) based on another measure (#1).&lt;/P&gt;&lt;P&gt;Measure1 =&amp;nbsp;CALCULATE(sum('DATA'[Amount]),'DATA'[Account]="Revenue")&lt;/P&gt;&lt;P&gt;Measure2 = CALCULATE([Measure1],'DATA'[Category]="CATEGORY1")+&amp;nbsp;CALCULATE([Measure1],'DATA'[Category]="CATEGORY2")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Category is a calculated column in DATA that returns a category based on a related field in another table)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure2 correctly populates revenue for CATEGORY1 and 2.&amp;nbsp; The problem: for some reason, Measure2 is also populating CATEGORY1 &amp;amp; 2 totals for categories that have &lt;U&gt;no&lt;/U&gt; revenue (that &lt;U&gt;aren't&lt;/U&gt; CATEGORY1 or 2).&amp;nbsp; Can anyone help me understand why calculate is behaving this way and/or how to fix?&amp;nbsp; Many thanks!!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 15:49:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-function-not-respecting-filter/m-p/3275028#M121477</guid>
      <dc:creator>jkapso751</dc:creator>
      <dc:date>2023-06-08T15:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate function not respecting filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-function-not-respecting-filter/m-p/3275050#M121478</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="557464" data-lia-user-login="jkapso751" class="lia-mention lia-mention-user"&gt;jkapso751&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;Measure2 =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;[Measure1],&lt;BR /&gt;KEEPFILTERS ( 'DATA'[Category] IN { "CATEGORY1", "CATEGORY2" } )&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 15:59:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-function-not-respecting-filter/m-p/3275050#M121478</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-08T15:59:25Z</dc:date>
    </item>
  </channel>
</rss>

