<?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 Subtract between two value using date slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-between-two-value-using-date-slicer/m-p/2898099#M94302</link>
    <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Using slicer as in example i want to receive (13.10.200) 200 - (1.10.2022) 100 = 100&lt;/P&gt;&lt;P&gt;How can i resolve it with dax functions?&lt;/P&gt;</description>
    <pubDate>Thu, 10 Nov 2022 16:52:23 GMT</pubDate>
    <dc:creator>Sviatoslav</dc:creator>
    <dc:date>2022-11-10T16:52:23Z</dc:date>
    <item>
      <title>Subtract between two value using date slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-between-two-value-using-date-slicer/m-p/2898099#M94302</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Using slicer as in example i want to receive (13.10.200) 200 - (1.10.2022) 100 = 100&lt;/P&gt;&lt;P&gt;How can i resolve it with dax functions?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 16:52:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-between-two-value-using-date-slicer/m-p/2898099#M94302</guid>
      <dc:creator>Sviatoslav</dc:creator>
      <dc:date>2022-11-10T16:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract between two value using date slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-between-two-value-using-date-slicer/m-p/2898868#M94340</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="284525" data-lia-user-login="Sviatoslav" class="lia-mention lia-mention-user"&gt;Sviatoslav&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add a slicer with Between type .&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then create a measure to return the value of max date and min date to count the diff .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
var _MAXdate=MAX('Table'[Date])
var _MINdate=MIN('Table'[Date])
return CALCULATE(SELECTEDVALUE('Table'[Value]),FILTER(ALL('Table'),'Table'[Date]=_MAXdate))-CALCULATE(SELECTEDVALUE('Table'[Value]),FILTER(ALL('Table'),'Table'[Date]=_MINdate))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The final result is like below .&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Ailsa Tao&lt;BR /&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 02:05:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-between-two-value-using-date-slicer/m-p/2898868#M94340</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-11T02:05:02Z</dc:date>
    </item>
  </channel>
</rss>

