<?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 SUM value is Row in a Column Equals a Specific Value and Value is Greater than Zero in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-value-is-Row-in-a-Column-Equals-a-Specific-Value-and-Value/m-p/942750#M10081</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to SUM Values [Amount] if a Column [FS Item (Account)]&amp;nbsp;is Equal to a Specific Value [173] and the [Amount] is Positive / Greater than Zero.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formula I have to SUM the values is&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM ( Masterdata[Amount] ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Masterdata[FS Item (Account)]="173"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;which provides the SUM, but I am unsure how to add the condition for it to add only the [Amount] that are greater than zero. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Would appreciate any help. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Best regards, &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Feb 2020 13:01:50 GMT</pubDate>
    <dc:creator>MS3</dc:creator>
    <dc:date>2020-02-21T13:01:50Z</dc:date>
    <item>
      <title>SUM value is Row in a Column Equals a Specific Value and Value is Greater than Zero</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-value-is-Row-in-a-Column-Equals-a-Specific-Value-and-Value/m-p/942750#M10081</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to SUM Values [Amount] if a Column [FS Item (Account)]&amp;nbsp;is Equal to a Specific Value [173] and the [Amount] is Positive / Greater than Zero.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formula I have to SUM the values is&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM ( Masterdata[Amount] ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Masterdata[FS Item (Account)]="173"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;which provides the SUM, but I am unsure how to add the condition for it to add only the [Amount] that are greater than zero. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Would appreciate any help. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Best regards, &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 13:01:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-value-is-Row-in-a-Column-Equals-a-Specific-Value-and-Value/m-p/942750#M10081</guid>
      <dc:creator>MS3</dc:creator>
      <dc:date>2020-02-21T13:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: SUM value is Row in a Column Equals a Specific Value and Value is Greater than Zero</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-value-is-Row-in-a-Column-Equals-a-Specific-Value-and-Value/m-p/942763#M10084</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;it should be like this&amp;nbsp;&lt;BR /&gt;CALCULATE (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM ( Masterdata[Amount] ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Masterdata[FS Item (Account)]="173"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;amp;&amp;amp;&amp;nbsp;[Amount]&amp;nbsp;&amp;gt;0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 21 Feb 2020 13:06:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-value-is-Row-in-a-Column-Equals-a-Specific-Value-and-Value/m-p/942763#M10084</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-21T13:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: SUM value is Row in a Column Equals a Specific Value and Value is Greater than Zero</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-value-is-Row-in-a-Column-Equals-a-Specific-Value-and-Value/m-p/942782#M10085</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Needed to add the table for Amount as per below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CALCULATE (&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM ( Masterdata[Amount] ),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Masterdata[FS Item (Account)]="173"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;amp;&amp;amp; &lt;STRONG&gt;Masterdata&lt;/STRONG&gt;&amp;nbsp;[Amount]&amp;nbsp;&amp;gt;0&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use the expression it tells me&lt;/P&gt;&lt;P&gt;"The expression contains multiple columns, but only a single column can be used in a True / False expression that is used as a Table Filter Expression"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Indeed [Amount] and [FS Item (Account)]] are columns in my Masterdata table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 13:23:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-value-is-Row-in-a-Column-Equals-a-Specific-Value-and-Value/m-p/942782#M10085</guid>
      <dc:creator>MS3</dc:creator>
      <dc:date>2020-02-21T13:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: SUM value is Row in a Column Equals a Specific Value and Value is Greater than Zero</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-value-is-Row-in-a-Column-Equals-a-Specific-Value-and-Value/m-p/942789#M10086</link>
      <description>&lt;P&gt;sry, my bad&amp;nbsp;&lt;BR /&gt;do like this with a filter function :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 13:28:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-value-is-Row-in-a-Column-Equals-a-Specific-Value-and-Value/m-p/942789#M10086</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-21T13:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: SUM value is Row in a Column Equals a Specific Value and Value is Greater than Zero</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-value-is-Row-in-a-Column-Equals-a-Specific-Value-and-Value/m-p/942790#M10087</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="209395" data-lia-user-login="MS3" class="lia-mention lia-mention-user"&gt;MS3&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try the following DAX:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;EM&gt;CALCULATE (&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SUM ( Masterdata[Amount] ),&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FILTER(&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Masterdata, Masterdata[FS Item (Account)]="173" &amp;amp;&amp;amp;&amp;nbsp;Masterdata[Amount] &amp;gt; 0&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Kindly give Kudos if the solution is helpful and Mark it as a solution if it resolves the issue! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Pragati&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 21 Feb 2020 13:28:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-value-is-Row-in-a-Column-Equals-a-Specific-Value-and-Value/m-p/942790#M10087</guid>
      <dc:creator>Pragati11</dc:creator>
      <dc:date>2020-02-21T13:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: SUM value is Row in a Column Equals a Specific Value and Value is Greater than Zero</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-value-is-Row-in-a-Column-Equals-a-Specific-Value-and-Value/m-p/942810#M10090</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It worked wonderfully!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 13:43:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-value-is-Row-in-a-Column-Equals-a-Specific-Value-and-Value/m-p/942810#M10090</guid>
      <dc:creator>MS3</dc:creator>
      <dc:date>2020-02-21T13:43:38Z</dc:date>
    </item>
  </channel>
</rss>

