<?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: Subtract Row value from previous column total in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-Row-value-from-previous-column-total/m-p/3300773#M123105</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="575533" data-lia-user-login="akshay2204" class="lia-mention lia-mention-user"&gt;akshay2204&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try using ALLSELECTED instead of ALL&lt;/P&gt;</description>
    <pubDate>Sat, 24 Jun 2023 15:04:04 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-06-24T15:04:04Z</dc:date>
    <item>
      <title>Subtract Row value from previous column total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-Row-value-from-previous-column-total/m-p/3300747#M123100</link>
      <description>&lt;P&gt;I would like to have a dax query for subtracting row value from previous column total&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like for example the total for GP column is 63.7 and the next column CustGP the values should by 63.7 - 2.2 = 61.5 but it is showing up 74.44.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The dax query which I am using is&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;01_GP_Cust = &lt;/SPAN&gt;&lt;SPAN&gt;Sumx&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;All&lt;/SPAN&gt;&lt;SPAN&gt;('Act vs Bud'),[001_GP_CY])-('Act vs Bud'[001_GP_CY])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Ultimately we need to calculate&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;GM Impact = (Total GP / Total Sales) - ((Total GP-Customer GP)/(Total Sales-Customer Sales))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jun 2023 13:35:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-Row-value-from-previous-column-total/m-p/3300747#M123100</guid>
      <dc:creator>akshay2204</dc:creator>
      <dc:date>2023-06-24T13:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract Row value from previous column total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-Row-value-from-previous-column-total/m-p/3300773#M123105</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="575533" data-lia-user-login="akshay2204" class="lia-mention lia-mention-user"&gt;akshay2204&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try using ALLSELECTED instead of ALL&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jun 2023 15:04:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-Row-value-from-previous-column-total/m-p/3300773#M123105</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-24T15:04:04Z</dc:date>
    </item>
  </channel>
</rss>

