<?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: DAX Expression to remove an existing filter and apply new one in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Expression-to-remove-an-existing-filter-and-apply-new-one/m-p/1750317#M36471</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to use "ALL" and remove existing filter. Then apply new filter to this solved the issue. Took me some time to figure out the DAX. Listing the new DAX for reference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TechnicalEmpHeadcountProjection = CALCULATE (SUM('Budgeting v_IncomeStatement'[TechnicalEmpHeadcountRevisedCol]), ALL('Budgeting v_IncomeStatement'[PeriodFormatted].[Month]), 'Budgeting v_IncomeStatement'[PeriodFormatted].[Month] = "December")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RB&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 28 Mar 2021 21:10:32 GMT</pubDate>
    <dc:creator>rbhattacharya</dc:creator>
    <dc:date>2021-03-28T21:10:32Z</dc:date>
    <item>
      <title>DAX Expression to remove an existing filter and apply new one</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Expression-to-remove-an-existing-filter-and-apply-new-one/m-p/1745752#M36300</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Date filter in the report where I'm selecting current month. I have a requirement where I will have to calculate a certain measure with a new filter value i.e. remove the current filter and reapply a new filter. I'm restricted to using a single filter in the report which is set to current month. I'm using the following DAX expression currently where my current filter is set to &lt;STRONG&gt;"January" and I'm trying to retrieve data for "December"&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TechnicalEmpHeadcountProjection = CALCULATE([Technical Employee Headcount *], FILTER(ALL('Budgeting v_IncomeStatement'[PeriodFormatted].[Month]), 'Budgeting v_IncomeStatement'[PeriodFormatted].[Month]= "December"))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above DAX expression doesn't seem to work. [PeriodFormatted] is my Date column. I'm also attaching a screenshot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly assist me with the DAX.&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;Regards,&lt;/P&gt;&lt;P&gt;RB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 13:49:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Expression-to-remove-an-existing-filter-and-apply-new-one/m-p/1745752#M36300</guid>
      <dc:creator>rbhattacharya</dc:creator>
      <dc:date>2021-03-25T13:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Expression to remove an existing filter and apply new one</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Expression-to-remove-an-existing-filter-and-apply-new-one/m-p/1750257#M36467</link>
      <description>&lt;P&gt;Have you tried using REMOVEFILTERS()&amp;nbsp; or a disconnected table to feed your slicer?&lt;/P&gt;</description>
      <pubDate>Sun, 28 Mar 2021 20:22:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Expression-to-remove-an-existing-filter-and-apply-new-one/m-p/1750257#M36467</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-03-28T20:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Expression to remove an existing filter and apply new one</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Expression-to-remove-an-existing-filter-and-apply-new-one/m-p/1750317#M36471</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to use "ALL" and remove existing filter. Then apply new filter to this solved the issue. Took me some time to figure out the DAX. Listing the new DAX for reference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TechnicalEmpHeadcountProjection = CALCULATE (SUM('Budgeting v_IncomeStatement'[TechnicalEmpHeadcountRevisedCol]), ALL('Budgeting v_IncomeStatement'[PeriodFormatted].[Month]), 'Budgeting v_IncomeStatement'[PeriodFormatted].[Month] = "December")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RB&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 28 Mar 2021 21:10:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Expression-to-remove-an-existing-filter-and-apply-new-one/m-p/1750317#M36471</guid>
      <dc:creator>rbhattacharya</dc:creator>
      <dc:date>2021-03-28T21:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Expression to remove an existing filter and apply new one</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Expression-to-remove-an-existing-filter-and-apply-new-one/m-p/2735372#M83878</link>
      <description>&lt;P&gt;thanks! just used this - helped hugely!!&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 13:19:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Expression-to-remove-an-existing-filter-and-apply-new-one/m-p/2735372#M83878</guid>
      <dc:creator>LL11SJL</dc:creator>
      <dc:date>2022-08-30T13:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Expression to remove an existing filter and apply new one</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Expression-to-remove-an-existing-filter-and-apply-new-one/m-p/4724598#M180962</link>
      <description>&lt;P&gt;I had a similar issue where I wanted to remove the filter on Employee Type, but add a new filter on Appointment Type - so that whereever this measure is placed, it will show the performance of one employee type on a set of Appointment types.&amp;nbsp; If it's in a viz with the Month column or Day, or Employee name - I want all those filters to remain.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found that if you use ALL(), ALLSELECTED() or if you REMOVEFILTERS, then add a FILTER statement (as in a Calculate with 2 filters) --- it would never work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just having the REMOVEFILTERS worked for getting the Employee Type filter off, however when I add the second "Filter" to the calculate, it broke.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to make it work by Filtering the table with my NEW filter requirement First (inner most function), then using Calculate to remove the filter I don't want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CALCULATE(SUMX(FILTER(Appointments, NOT(LEFT([ApptType], 2) IN {"PT","OT"})) 
               , Appointments[IsReportable] )  
          ,REMOVEFILTERS(StaffResources[EmployeeType]) 
         )&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 08 Jun 2025 17:00:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Expression-to-remove-an-existing-filter-and-apply-new-one/m-p/4724598#M180962</guid>
      <dc:creator>Jon_vB</dc:creator>
      <dc:date>2025-06-08T17:00:57Z</dc:date>
    </item>
  </channel>
</rss>

