<?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 How to substract a row to all the row in the filtered table ? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-substract-a-row-to-all-the-row-in-the-filtered-table/m-p/3298372#M122942</link>
    <description>&lt;P&gt;Hello the community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have filtered my table using slicers, now I need to substract a specific row to all the rows in the filtered table. In fact, in the new table I have a unique row with 1 as a type (type column) and I need to substract it to all the others rows.&lt;/P&gt;&lt;P&gt;Nonetheless, it seems tricky in Power BI to do that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The most closely i've is to use SUMX to substract, but instead of substract it to all the rows its only substract it to the same row.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The idea that I got is to duplicate that row in a new table but as the filtered table is dynamic due to the slicers it seems impossible for my level.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whould you please give me some tips to do that please ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks all&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jun 2023 17:35:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-06-22T17:35:47Z</dc:date>
    <item>
      <title>How to substract a row to all the row in the filtered table ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-substract-a-row-to-all-the-row-in-the-filtered-table/m-p/3298372#M122942</link>
      <description>&lt;P&gt;Hello the community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have filtered my table using slicers, now I need to substract a specific row to all the rows in the filtered table. In fact, in the new table I have a unique row with 1 as a type (type column) and I need to substract it to all the others rows.&lt;/P&gt;&lt;P&gt;Nonetheless, it seems tricky in Power BI to do that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The most closely i've is to use SUMX to substract, but instead of substract it to all the rows its only substract it to the same row.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The idea that I got is to duplicate that row in a new table but as the filtered table is dynamic due to the slicers it seems impossible for my level.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whould you please give me some tips to do that please ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks all&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 17:35:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-substract-a-row-to-all-the-row-in-the-filtered-table/m-p/3298372#M122942</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-22T17:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to substract a row to all the row in the filtered table ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-substract-a-row-to-all-the-row-in-the-filtered-table/m-p/3300432#M123082</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Create a measure that calculates the value you want to subtract from the other rows.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SubtractionValue = CALCULATE(SUMX(MyTable, MyTable[Value]), MyTable[Type] = 1)&lt;/LI-CODE&gt;&lt;P&gt;2. Create another measure that subtracts the SubtractionValue from the Value column for each row.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Result = MyTable[Value] - [SubtractionValue]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do not hesitate to let me know if you might need further assistance.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 20:44:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-substract-a-row-to-all-the-row-in-the-filtered-table/m-p/3300432#M123082</guid>
      <dc:creator>Sahir_Maharaj</dc:creator>
      <dc:date>2023-06-23T20:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to substract a row to all the row in the filtered table ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-substract-a-row-to-all-the-row-in-the-filtered-table/m-p/3302457#M123251</link>
      <description>&lt;P&gt;Thank you, but I'm still facing to the same problem when I use SUMX. As you can see in the screenshot, It's it doesn't compute the soustraction only for the first line it's like the value was related to the value it points to.&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;</description>
      <pubDate>Mon, 26 Jun 2023 14:39:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-substract-a-row-to-all-the-row-in-the-filtered-table/m-p/3302457#M123251</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-26T14:39:54Z</dc:date>
    </item>
  </channel>
</rss>

