<?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: Ignoring Negative Values in Calculated Column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ignoring-Negative-Values-in-Calculated-Column/m-p/2350600#M59638</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check the formula.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;measure1 = SUM('Table'[ask])-SUM('Table'[actual])

Measure2 = IF([measure1]&amp;lt;0,0,[measure1])

Measure3 = IF(ISINSCOPE('Table'[ask]),[measure1],SUMX(ALL('Table'),[Measure2]))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jay&lt;/P&gt;</description>
    <pubDate>Mon, 21 Feb 2022 09:20:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-02-21T09:20:42Z</dc:date>
    <item>
      <title>Ignoring Negative Values in Calculated Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ignoring-Negative-Values-in-Calculated-Column/m-p/2341337#M59096</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a calculated meaure where i am going subtraction from two columns which contains values as below :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I need the result value which is showing in green(2) however when i am doing subtraction from (Ask-Actual) i am getting a result (-1) however i want to ignore negative values in my measure so that my result value will appear as (2).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created 3 measures which are as below :&lt;/P&gt;&lt;P&gt;Total_Ask=Sum(ask)&lt;/P&gt;&lt;P&gt;Total Actual-Sum(Actual)&lt;BR /&gt;Gap=Total Ask-Total Actual&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please help me in figuring out how can i calculate Gap while ignoring Negative values?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ashish&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 06:48:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ignoring-Negative-Values-in-Calculated-Column/m-p/2341337#M59096</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-16T06:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring Negative Values in Calculated Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ignoring-Negative-Values-in-Calculated-Column/m-p/2341900#M59122</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , of those, are column &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sumx(table, if([Total Ask]-[Total Actual]&amp;gt;0 ,[Total Ask]-[Total Actual], blank()) )&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 10:32:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ignoring-Negative-Values-in-Calculated-Column/m-p/2341900#M59122</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-02-16T10:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring Negative Values in Calculated Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ignoring-Negative-Values-in-Calculated-Column/m-p/2350600#M59638</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check the formula.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;measure1 = SUM('Table'[ask])-SUM('Table'[actual])

Measure2 = IF([measure1]&amp;lt;0,0,[measure1])

Measure3 = IF(ISINSCOPE('Table'[ask]),[measure1],SUMX(ALL('Table'),[Measure2]))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jay&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 09:20:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ignoring-Negative-Values-in-Calculated-Column/m-p/2350600#M59638</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-21T09:20:42Z</dc:date>
    </item>
  </channel>
</rss>

