<?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: Need to add two measures based on a condition in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-add-two-measures-based-on-a-condition/m-p/1474577#M28041</link>
    <description>&lt;P&gt;Your measure is really [Addition] =&amp;nbsp;&lt;SPAN&gt;max&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&amp;nbsp;[Measure1] + [Measure2],&amp;nbsp;&lt;SPAN&gt;0&lt;/SPAN&gt; &lt;SPAN&gt;). Measures should never be preceded by the name of the table they reside in. Columns should always be preceded by their host tables' names. This is the rule in DAX.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Nov 2020 14:06:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-04T14:06:17Z</dc:date>
    <item>
      <title>Need to add two measures based on a condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-add-two-measures-based-on-a-condition/m-p/1474362#M28031</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I need your input as, I want to add two measures based on a simple condition.&lt;/P&gt;&lt;P&gt;Addition =IF(Measure1 &amp;gt;= -1* (Measure2) ,(Measure1 + Measure2),0)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Secondly, should I use measures with Query Name or simple measures names in the formula. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tariq Ashraf&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 12:12:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-add-two-measures-based-on-a-condition/m-p/1474362#M28031</guid>
      <dc:creator>ashrat001</dc:creator>
      <dc:date>2020-11-04T12:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add two measures based on a condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-add-two-measures-based-on-a-condition/m-p/1474471#M28039</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="267904" data-lia-user-login="ashrat001" class="lia-mention lia-mention-user"&gt;ashrat001&lt;/a&gt; , what is the problem you are facing &lt;/P&gt;
&lt;P&gt;Addition =IF([Measure1] &amp;gt;= -1* ([Measure2]) ,([Measure1] +[ Measure2]),0)&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;sumx(values(Table[Some ID]),IF([Measure1] &amp;gt;= -1* ([Measure2]) ,([Measure1] +[ Measure2]),0))&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 13:13:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-add-two-measures-based-on-a-condition/m-p/1474471#M28039</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-11-04T13:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add two measures based on a condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-add-two-measures-based-on-a-condition/m-p/1474577#M28041</link>
      <description>&lt;P&gt;Your measure is really [Addition] =&amp;nbsp;&lt;SPAN&gt;max&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&amp;nbsp;[Measure1] + [Measure2],&amp;nbsp;&lt;SPAN&gt;0&lt;/SPAN&gt; &lt;SPAN&gt;). Measures should never be preceded by the name of the table they reside in. Columns should always be preceded by their host tables' names. This is the rule in DAX.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 14:06:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-add-two-measures-based-on-a-condition/m-p/1474577#M28041</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-04T14:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add two measures based on a condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-add-two-measures-based-on-a-condition/m-p/1475876#M28085</link>
      <description>&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This formula is not working.&lt;/P&gt;&lt;P&gt;Balance = If([Meaure1] &amp;gt;= [Measure2], [Measure1] + [Measure2],0)&lt;/P&gt;&lt;P&gt;I'm getting following error:&lt;/P&gt;&lt;P&gt;Couldn't load the data for this visual. There's not enough memory to complete this operation. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tariq&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 06:42:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-add-two-measures-based-on-a-condition/m-p/1475876#M28085</guid>
      <dc:creator>ashrat001</dc:creator>
      <dc:date>2020-11-05T06:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add two measures based on a condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-add-two-measures-based-on-a-condition/m-p/1476086#M28099</link>
      <description>&lt;P&gt;Show the definitions of the measures. Most likely, the measures are written very inefficiently and require a lot of memony because of materialization.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 08:31:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-add-two-measures-based-on-a-condition/m-p/1476086#M28099</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-05T08:31:50Z</dc:date>
    </item>
  </channel>
</rss>

