<?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 Remove relationship and filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-relationship-and-filter/m-p/921448#M9103</link>
    <description>&lt;P&gt;Can anyone help me understand how I can remove all filters that are applied to the just date dimension while applying a separate filter?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So let's say that I have 3 tables, orders, customers and date. The date table is the time dimension and I want to calculate a value by removing all filters applied to the date table that are propogated to the order table via a relationship, while also retaining any filters from the customer dimension, and adding a filter in the measure directly to the order table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TestFormula%:= DIVIDE(CALCULATE(SUM(Orders[SellingQuantity]), ALL(Date), FILTER(Orders, Orders[DaysToEOM]&amp;lt;=-25))), CALCULATE(SUM(Orders[SellingQuantity]), ALL(Date)), 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in this formula I want to ignore all Date filters, while allowing filters to customer specific attributes, and also adding a filter to the DaysToEOM in the orders table. Unfortunately I find that slicers on the Date dimension still effect this formula.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Feb 2020 16:59:33 GMT</pubDate>
    <dc:creator>nyllshanson</dc:creator>
    <dc:date>2020-02-04T16:59:33Z</dc:date>
    <item>
      <title>Remove relationship and filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-relationship-and-filter/m-p/921448#M9103</link>
      <description>&lt;P&gt;Can anyone help me understand how I can remove all filters that are applied to the just date dimension while applying a separate filter?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So let's say that I have 3 tables, orders, customers and date. The date table is the time dimension and I want to calculate a value by removing all filters applied to the date table that are propogated to the order table via a relationship, while also retaining any filters from the customer dimension, and adding a filter in the measure directly to the order table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TestFormula%:= DIVIDE(CALCULATE(SUM(Orders[SellingQuantity]), ALL(Date), FILTER(Orders, Orders[DaysToEOM]&amp;lt;=-25))), CALCULATE(SUM(Orders[SellingQuantity]), ALL(Date)), 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in this formula I want to ignore all Date filters, while allowing filters to customer specific attributes, and also adding a filter to the DaysToEOM in the orders table. Unfortunately I find that slicers on the Date dimension still effect this formula.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 16:59:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-relationship-and-filter/m-p/921448#M9103</guid>
      <dc:creator>nyllshanson</dc:creator>
      <dc:date>2020-02-04T16:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Remove relationship and filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-relationship-and-filter/m-p/921510#M9109</link>
      <description>&lt;P&gt;Hi there. Yes, you can help your measure ignore and allow different filters. For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure =
CALCULATE( 
    SUM ( Orders[Column1] ) ,
    ALLEXCEPT ( Orders, Customer[ColumnToFilter1], ... , Customer[ColumnsToFilterN] )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will avoid any filter on the sum of column1 of orders excepting the columns added on ALLEXCEPT&lt;/P&gt;&lt;P&gt;Some doc:&amp;nbsp;&lt;A href="https://dax.guide/allexcept/" target="_blank" rel="noopener"&gt;https://dax.guide/allexcept/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 18:12:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-relationship-and-filter/m-p/921510#M9109</guid>
      <dc:creator>ibarrau</dc:creator>
      <dc:date>2020-02-04T18:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Remove relationship and filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-relationship-and-filter/m-p/921540#M9112</link>
      <description>&lt;P&gt;What if you want to say ignore "any filter in just this table", "keep filters in any other related table", and apply another filter using the filter function?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date Table - Ignore all filters&lt;/P&gt;&lt;P&gt;Customer Table - Keep all filters&lt;/P&gt;&lt;P&gt;Order Table - Apply condition (ex. Orders[columnname]&amp;lt;={somevalue})&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I write something like this?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 18:40:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-relationship-and-filter/m-p/921540#M9112</guid>
      <dc:creator>nyllshanson</dc:creator>
      <dc:date>2020-02-04T18:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Remove relationship and filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-relationship-and-filter/m-p/921571#M9114</link>
      <description>&lt;P&gt;I'm not sure you can keep it that simple. For that I would need a deep analysis of the data and understanding how you are showing the info. I know is tedious to add each column but you should just add the columns filtering in the page and not all of the customer table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 19:22:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-relationship-and-filter/m-p/921571#M9114</guid>
      <dc:creator>ibarrau</dc:creator>
      <dc:date>2020-02-04T19:22:55Z</dc:date>
    </item>
  </channel>
</rss>

