<?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: Calculate total ignoring negative in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-total-ignoring-negative/m-p/2664490#M79124</link>
    <description>&lt;P&gt;You could return different values based on whether an individual item was in scope or not, e.g.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Amount = IF( ISINSCOPE( 'Table'[Fruit] ), SUM('Table'[Value]), 
CALCULATE( SUM('Table'[Value]), 'Table'[Value] &amp;gt; 0 )
)&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 27 Jul 2022 09:34:55 GMT</pubDate>
    <dc:creator>johnt75</dc:creator>
    <dc:date>2022-07-27T09:34:55Z</dc:date>
    <item>
      <title>Calculate total ignoring negative</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-total-ignoring-negative/m-p/2664210#M79104</link>
      <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;&lt;BR /&gt;I'm trying to calculate total amount ignoring -ve values in the sum but displaying them on the table. For example I want to calculate total for Apples, Oranges and Banana's whereby the total is 3,000 but not 2,500 but the 500 should be shown on the table. When i filter the sum for values &amp;gt; 0 it shows 0 on Banana's and I'd like it to show the actual amount&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Apples&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;1,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Oranges&lt;/TD&gt;&lt;TD&gt;2,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Banana's&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;-500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Total Amount&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;3000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 08:20:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-total-ignoring-negative/m-p/2664210#M79104</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-27T08:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate total ignoring negative</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-total-ignoring-negative/m-p/2664490#M79124</link>
      <description>&lt;P&gt;You could return different values based on whether an individual item was in scope or not, e.g.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Amount = IF( ISINSCOPE( 'Table'[Fruit] ), SUM('Table'[Value]), 
CALCULATE( SUM('Table'[Value]), 'Table'[Value] &amp;gt; 0 )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 27 Jul 2022 09:34:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-total-ignoring-negative/m-p/2664490#M79124</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-07-27T09:34:55Z</dc:date>
    </item>
  </channel>
</rss>

