<?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 Incorrect value if interaction with filter (Date Slicer) is on in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-value-if-interaction-with-filter-Date-Slicer-is-on/m-p/3365414#M126543</link>
    <description>&lt;P&gt;here we can see the first table that has interaction with filters on top has wrong values but the second one when i turn the interactions off has right values.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here is my measure to calculate last year value&lt;/P&gt;&lt;PRE&gt;` Last_Year_value = CALCULATE(
    SUM(Profit_and_Loss[Value]),
    DATEADD('Calendar'[Date],-12,MONTH)
    )`&lt;/PRE&gt;&lt;P&gt;I have a relation one sided between profit_and_loss table and Calendare table&lt;/P&gt;&lt;P&gt;here it is the relation between the two tables&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried using "REMOVEFILTERS() / ALL() / ALLEXCEPT()", but non of them worked.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Aug 2023 12:14:10 GMT</pubDate>
    <dc:creator>HamzaKG</dc:creator>
    <dc:date>2023-08-04T12:14:10Z</dc:date>
    <item>
      <title>Incorrect value if interaction with filter (Date Slicer) is on</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-value-if-interaction-with-filter-Date-Slicer-is-on/m-p/3365414#M126543</link>
      <description>&lt;P&gt;here we can see the first table that has interaction with filters on top has wrong values but the second one when i turn the interactions off has right values.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here is my measure to calculate last year value&lt;/P&gt;&lt;PRE&gt;` Last_Year_value = CALCULATE(
    SUM(Profit_and_Loss[Value]),
    DATEADD('Calendar'[Date],-12,MONTH)
    )`&lt;/PRE&gt;&lt;P&gt;I have a relation one sided between profit_and_loss table and Calendare table&lt;/P&gt;&lt;P&gt;here it is the relation between the two tables&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried using "REMOVEFILTERS() / ALL() / ALLEXCEPT()", but non of them worked.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 12:14:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-value-if-interaction-with-filter-Date-Slicer-is-on/m-p/3365414#M126543</guid>
      <dc:creator>HamzaKG</dc:creator>
      <dc:date>2023-08-04T12:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect value if interaction with filter (Date Slicer) is on</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-value-if-interaction-with-filter-Date-Slicer-is-on/m-p/3367924#M126685</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="598748" data-lia-user-login="HamzaKG" class="lia-mention lia-mention-user"&gt;HamzaKG&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you to create a measure by below code. Please make sure there is a [Year] column in your Calendar table.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Last_Year_value = 
CALCULATE (
    SUM ( Profit_and_Loss[Sales] ),
    FILTER ( ALL ( 'Calendar' ), 'Calendar'[Year] = MAX ( 'Calendar'[Year] ) - 1 )
)&lt;/LI-CODE&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>Mon, 07 Aug 2023 08:20:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-value-if-interaction-with-filter-Date-Slicer-is-on/m-p/3367924#M126685</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-07T08:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect value if interaction with filter (Date Slicer) is on</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-value-if-interaction-with-filter-Date-Slicer-is-on/m-p/3368290#M126709</link>
      <description>&lt;P&gt;Thank&amp;nbsp; you so much&amp;nbsp;Anonymous&lt;/a&gt;, the solution that you proposed it did actually solve the problem.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 11:55:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-value-if-interaction-with-filter-Date-Slicer-is-on/m-p/3368290#M126709</guid>
      <dc:creator>HamzaKG</dc:creator>
      <dc:date>2023-08-07T11:55:41Z</dc:date>
    </item>
  </channel>
</rss>

