<?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 Dax: Calculate difference between 2 values in same column based on date selection in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Calculate-difference-between-2-values-in-same-column-based/m-p/1825138#M38735</link>
    <description>&lt;P&gt;Please assist with Dax syntax for measure to subtract the &lt;STRONG&gt;Med All&lt;/STRONG&gt; value for the max date minus Min date for value in same column.&amp;nbsp; The user will select 2 "As of Dates" for the calculation.&amp;nbsp; Column name is Med All.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;16,186 - 16,128 = 58&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;thanks for your assistance!&lt;/P&gt;</description>
    <pubDate>Wed, 05 May 2021 14:30:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-05-05T14:30:28Z</dc:date>
    <item>
      <title>Dax: Calculate difference between 2 values in same column based on date selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Calculate-difference-between-2-values-in-same-column-based/m-p/1825138#M38735</link>
      <description>&lt;P&gt;Please assist with Dax syntax for measure to subtract the &lt;STRONG&gt;Med All&lt;/STRONG&gt; value for the max date minus Min date for value in same column.&amp;nbsp; The user will select 2 "As of Dates" for the calculation.&amp;nbsp; Column name is Med All.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;16,186 - 16,128 = 58&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;thanks for your assistance!&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 14:30:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Calculate-difference-between-2-values-in-same-column-based/m-p/1825138#M38735</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-05T14:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dax: Calculate difference between 2 values in same column based on date selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Calculate-difference-between-2-values-in-same-column-based/m-p/1825280#M38739</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Try measure like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Diff = &lt;BR /&gt;var _max = maxx(allselected('As on date'), 'As on date'[Date]) &lt;BR /&gt;var _min = minx(allselected('As on date'), 'As on date'[Date]) &lt;BR /&gt;return &lt;BR /&gt;calculate(sum(pptcount[med all]) , filter('As on date', 'As on date'[Date] =_max)) -calculate(sum(pptcount[med all]) , filter('As on date', 'As on date'[Date] =_min))&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 15:48:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Calculate-difference-between-2-values-in-same-column-based/m-p/1825280#M38739</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-05-05T15:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dax: Calculate difference between 2 values in same column based on date selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Calculate-difference-between-2-values-in-same-column-based/m-p/1825542#M38745</link>
      <description>&lt;P&gt;thank you!&amp;nbsp; That was the syntax I needed.&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 18:07:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Calculate-difference-between-2-values-in-same-column-based/m-p/1825542#M38745</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-05T18:07:57Z</dc:date>
    </item>
  </channel>
</rss>

