<?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 Re: Matrix Subtracting column Values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Subtracting-column-Values/m-p/2982088#M99985</link>
    <description>&lt;P&gt;When using in the matrix I get something like this&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Not as i expect any suggestion?&lt;/P&gt;</description>
    <pubDate>Wed, 21 Dec 2022 14:39:14 GMT</pubDate>
    <dc:creator>Euro0681</dc:creator>
    <dc:date>2022-12-21T14:39:14Z</dc:date>
    <item>
      <title>Matrix Subtracting column Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Subtracting-column-Values/m-p/2980327#M99890</link>
      <description>&lt;P&gt;I have matrix that has dates on columns, which are selected using a slicer and has Sales Amount as a value, and is broken down by Country on the Rows&lt;/P&gt;&lt;P&gt; &lt;img /&gt;&lt;/P&gt;&lt;P&gt;Im wanted to create a measure that gives me the 2nd date - 1st date like below&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;If anybody could help Please!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 00:01:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Subtracting-column-Values/m-p/2980327#M99890</guid>
      <dc:creator>Euro0681</dc:creator>
      <dc:date>2022-12-21T00:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix Subtracting column Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Subtracting-column-Values/m-p/2980485#M99898</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="451586" data-lia-user-login="Euro0681" class="lia-mention lia-mention-user"&gt;Euro0681&lt;/a&gt; , Assume you are using a measure and only 2 dates are selected &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then you can switch total using isinscope&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;new measure =&lt;BR /&gt;var _max = maxx(allselected(Date),Date[Date])&lt;BR /&gt;var _min = minx(allselected(Date),Date[Date]) &lt;BR /&gt;return&lt;/P&gt;
&lt;P&gt;if(isinscope(Date[Date]), [Measure],&lt;BR /&gt;calculate( [Measure], filter('Date', 'Date'[Date] =_min )) -&amp;nbsp;calculate( [Measure], filter('Date', 'Date'[Date] =&amp;nbsp; =_max)) ) &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if they are month&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;new measure =&lt;BR /&gt;var _max = maxx(allselected(Date),Date[Date])&lt;BR /&gt;var _min = minx(allselected(Date),Date[Date]) &lt;BR /&gt;return&lt;/P&gt;
&lt;P&gt;if(isinscope(Date[Date]), [Measure],&lt;BR /&gt;calculate( [Measure], filter('date',eomonth( 'date'[Date],0) =eomonth(_min,0) )) -&amp;nbsp;calculate( [Measure], filter('date', eomonth('date'[Date],0) = eomonth(_max,0) )) )&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 02:28:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Subtracting-column-Values/m-p/2980485#M99898</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-12-21T02:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix Subtracting column Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Subtracting-column-Values/m-p/2982088#M99985</link>
      <description>&lt;P&gt;When using in the matrix I get something like this&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Not as i expect any suggestion?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 14:39:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Subtracting-column-Values/m-p/2982088#M99985</guid>
      <dc:creator>Euro0681</dc:creator>
      <dc:date>2022-12-21T14:39:14Z</dc:date>
    </item>
  </channel>
</rss>

