<?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 Using Remove Filter function in measure not working in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Remove-Filter-function-in-measure-not-working/m-p/3079127#M107202</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have a simple visual like below which is a simple bar chart of "Demand" vs "Date-time"&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The Demand is a measure calculated as :&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;EM&gt;Demand Rap = (CALCULATE(sum(Facts[Assignment Committed Work])+sum(Facts[Assignment Proposed Work]), filter(Projects, Projects[Division Priority Project Name] &amp;lt;&amp;gt; BLANK())))/168&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;There are many page level filters on the report as below.&amp;nbsp;&lt;BR /&gt;&lt;img /&gt;&lt;P&gt;&lt;BR /&gt;Now my requirement is, I would like to modify my measure so that selection of "Resource Is Active" filter doesn't impact the calculation ( since there are other visuals on the page which need this filter ). I tried modifying the measure using 'REMOVEFILTER' function but its not working as expected.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;EM&gt;Demand Rap exc resoureceIsActive = (CALCULATE(sum(Facts[Assignment Committed Work])+sum(Facts[Assignment Proposed Work]),REMOVEFILTERS(Resources[ResourceIsActive]), filter(Projects, Projects[Division Priority Project Name] &amp;lt;&amp;gt; BLANK())))/168&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;Please help me in understanding what am I missing here and what should be the correct way to do this.&lt;BR /&gt;Thansk you!&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Feb 2023 08:50:16 GMT</pubDate>
    <dc:creator>Karma777</dc:creator>
    <dc:date>2023-02-14T08:50:16Z</dc:date>
    <item>
      <title>Using Remove Filter function in measure not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Remove-Filter-function-in-measure-not-working/m-p/3079127#M107202</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have a simple visual like below which is a simple bar chart of "Demand" vs "Date-time"&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The Demand is a measure calculated as :&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;EM&gt;Demand Rap = (CALCULATE(sum(Facts[Assignment Committed Work])+sum(Facts[Assignment Proposed Work]), filter(Projects, Projects[Division Priority Project Name] &amp;lt;&amp;gt; BLANK())))/168&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;There are many page level filters on the report as below.&amp;nbsp;&lt;BR /&gt;&lt;img /&gt;&lt;P&gt;&lt;BR /&gt;Now my requirement is, I would like to modify my measure so that selection of "Resource Is Active" filter doesn't impact the calculation ( since there are other visuals on the page which need this filter ). I tried modifying the measure using 'REMOVEFILTER' function but its not working as expected.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;EM&gt;Demand Rap exc resoureceIsActive = (CALCULATE(sum(Facts[Assignment Committed Work])+sum(Facts[Assignment Proposed Work]),REMOVEFILTERS(Resources[ResourceIsActive]), filter(Projects, Projects[Division Priority Project Name] &amp;lt;&amp;gt; BLANK())))/168&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;Please help me in understanding what am I missing here and what should be the correct way to do this.&lt;BR /&gt;Thansk you!&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 08:50:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Remove-Filter-function-in-measure-not-working/m-p/3079127#M107202</guid>
      <dc:creator>Karma777</dc:creator>
      <dc:date>2023-02-14T08:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using Remove Filter function in measure not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Remove-Filter-function-in-measure-not-working/m-p/3081085#M107388</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="478677" data-lia-user-login="Karma777" class="lia-mention lia-mention-user"&gt;Karma777&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here I create a sample file to have a test.&lt;/P&gt;
&lt;P&gt;Facts:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Projects:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Project:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Relationship:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I suggest you to create [&lt;SPAN&gt;Demand Rap exc resoureceIsActive&lt;/SPAN&gt;&lt;SPAN&gt;] measure based on&amp;nbsp;[&lt;SPAN&gt;Demand Rap] measure.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Demand Rap exc resoureceIsActive = 
CALCULATE([Demand Rap],REMOVEFILTERS(Resources[ResourceIsActive]))&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 09:02:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Remove-Filter-function-in-measure-not-working/m-p/3081085#M107388</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-15T09:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using Remove Filter function in measure not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Remove-Filter-function-in-measure-not-working/m-p/3082785#M107527</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;, Thank you for taking your time to answer. I tried doing this but it still is giving the same result.&lt;BR /&gt;Also could you please help me understand how is the data being calculated in the example you showed. Since the report is filtered to resourcetype in (2,20), project p3 value should be ignored. Similarly p4 should be ignored as Division Priority Project Name filed is empty. So I assume the final chart should show only 2 projects- p1 &amp;amp; p2 with the values 3 &amp;amp; 5. Could you please explain how we are getting 5 &amp;amp; 8 in the chart?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 06:45:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Remove-Filter-function-in-measure-not-working/m-p/3082785#M107527</guid>
      <dc:creator>Karma777</dc:creator>
      <dc:date>2023-02-16T06:45:09Z</dc:date>
    </item>
  </channel>
</rss>

