<?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 Regarding the DATEADD working with modifier ALL('Date') in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Regarding-the-DATEADD-working-with-modifier-ALL-Date/m-p/3301144#M123135</link>
    <description>&lt;P&gt;Hi all,&lt;BR /&gt;I have a normal model with 'Date' and 'Sales' tables. And I have 3 measures,&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The first one is Sales Amount := SUMX('Sales', [Quantity] * [Net Price])&lt;/LI&gt;&lt;LI&gt;The second one is Sales AllDate := CALCULATE( [Saltes Amount], ALL('Date'))&lt;/LI&gt;&lt;LI&gt;The last one is Sales PM in AllDate := CALCULATE( [Saltes Amount], DATEADD('Date'[Date], -1 ,MONTH), ALL('Date'))&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I put them in a matrix, but I don't understand the behavior of the last measure, why the ALL modifier doesn't remove the filter of DATEADD? It's like the measure of&amp;nbsp;CALCULATE( [Saltes Amount], DATEADD('Date'[Date], -1 ,MONTH))&lt;BR /&gt;Could someone please explain it to me. Thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 25 Jun 2023 16:32:21 GMT</pubDate>
    <dc:creator>HungFan</dc:creator>
    <dc:date>2023-06-25T16:32:21Z</dc:date>
    <item>
      <title>Regarding the DATEADD working with modifier ALL('Date')</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Regarding-the-DATEADD-working-with-modifier-ALL-Date/m-p/3301144#M123135</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;I have a normal model with 'Date' and 'Sales' tables. And I have 3 measures,&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The first one is Sales Amount := SUMX('Sales', [Quantity] * [Net Price])&lt;/LI&gt;&lt;LI&gt;The second one is Sales AllDate := CALCULATE( [Saltes Amount], ALL('Date'))&lt;/LI&gt;&lt;LI&gt;The last one is Sales PM in AllDate := CALCULATE( [Saltes Amount], DATEADD('Date'[Date], -1 ,MONTH), ALL('Date'))&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I put them in a matrix, but I don't understand the behavior of the last measure, why the ALL modifier doesn't remove the filter of DATEADD? It's like the measure of&amp;nbsp;CALCULATE( [Saltes Amount], DATEADD('Date'[Date], -1 ,MONTH))&lt;BR /&gt;Could someone please explain it to me. Thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2023 16:32:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Regarding-the-DATEADD-working-with-modifier-ALL-Date/m-p/3301144#M123135</guid>
      <dc:creator>HungFan</dc:creator>
      <dc:date>2023-06-25T16:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding the DATEADD working with modifier ALL('Date')</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Regarding-the-DATEADD-working-with-modifier-ALL-Date/m-p/3301152#M123137</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="419328" data-lia-user-login="HungFan" class="lia-mention lia-mention-user"&gt;HungFan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Becuase it is not supposed to. It only removes the outer filter which is then replaced by the inner filter. However, it is mostly useless to have ALL along with DATEADD as it removes the filter automatically from the date table.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2023 16:57:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Regarding-the-DATEADD-working-with-modifier-ALL-Date/m-p/3301152#M123137</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-25T16:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding the DATEADD working with modifier ALL('Date')</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Regarding-the-DATEADD-working-with-modifier-ALL-Date/m-p/3301549#M123163</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reminding me the key point that ALL, used in CALCULATE, only remove the outer filter.&lt;/P&gt;&lt;P&gt;I understand it right now.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 04:21:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Regarding-the-DATEADD-working-with-modifier-ALL-Date/m-p/3301549#M123163</guid>
      <dc:creator>HungFan</dc:creator>
      <dc:date>2023-06-26T04:21:53Z</dc:date>
    </item>
  </channel>
</rss>

