<?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: DAX Measure Cumulative subtraction Total that is similar to Excel =IF(C2&amp;gt;B3,0,B3-C2) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Cumulative-subtraction-Total-that-is-similar-to/m-p/1566236#M31157</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;yes it has to be DAX measures. and yes the&amp;nbsp;&lt;SPAN&gt;result impacted by user interaction with filters.&amp;nbsp; the column is sorted by date column. The cell formula on step 2 is similar to step 1. It is using the result from step 2 in the formula =IF(C3=0,B3/C2,B4+1)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Dec 2020 02:08:14 GMT</pubDate>
    <dc:creator>kLizzy</dc:creator>
    <dc:date>2020-12-23T02:08:14Z</dc:date>
    <item>
      <title>DAX Measure Cumulative subtraction Total that is similar to Excel =IF(C2&gt;B3,0,B3-C2)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Cumulative-subtraction-Total-that-is-similar-to/m-p/1565739#M31151</link>
      <description>&lt;P&gt;Could anyone help to get the measure to work like&amp;nbsp;=IF(C2&amp;gt;B3,0,B3-C2) in Excel.&lt;/P&gt;&lt;P&gt;Invetory row is the data from the table, Step 1 and Step2 rows are the measures need to create in DAX&lt;/P&gt;&lt;P&gt;for example Cell C3&amp;nbsp;=IF(C2&amp;gt;B3,0,B3-C2)&lt;/P&gt;&lt;P&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; = IF(50&amp;gt;150, 0, 150-50)&amp;nbsp;&lt;/P&gt;&lt;P&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; = 100&lt;/P&gt;&lt;P&gt;Cell D3&amp;nbsp;=IF(D2&amp;gt;C3,0,C3-D2)&lt;/P&gt;&lt;P&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; = IF(40&amp;gt;100, 0, 100-40)&amp;nbsp;&lt;/P&gt;&lt;P&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; = 60&lt;/P&gt;&lt;P&gt;and so on..&lt;/P&gt;&lt;P&gt;Step 2 has similar calculation. If you could help with Step 1 measure I would greatly appreciate it.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Jan-20&lt;/TD&gt;&lt;TD&gt;Feb-20&lt;/TD&gt;&lt;TD&gt;Mar-20&lt;/TD&gt;&lt;TD&gt;Apr-20&lt;/TD&gt;&lt;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ubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Cumulative-subtraction-Total-that-is-similar-to/m-p/1565739#M31151</guid>
      <dc:creator>kLizzy</dc:creator>
      <dc:date>2020-12-22T18:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure Cumulative subtraction Total that is similar to Excel =IF(C2&gt;B3,0,B3-C2)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Cumulative-subtraction-Total-that-is-similar-to/m-p/1566089#M31155</link>
      <description>&lt;P&gt;Does it have to be a DAX measure? Is the result impacted by user interaction with filters?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If yes then you can apply one of the "find previous row" patterns. Be aware that this is not trivial, and at the very least you need a sortable master column (the date column in your example). It is also assumed that you have unpivoted the data in step 2 into a more usable format.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 23:25:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Cumulative-subtraction-Total-that-is-similar-to/m-p/1566089#M31155</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-12-22T23:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure Cumulative subtraction Total that is similar to Excel =IF(C2&gt;B3,0,B3-C2)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Cumulative-subtraction-Total-that-is-similar-to/m-p/1566236#M31157</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;yes it has to be DAX measures. and yes the&amp;nbsp;&lt;SPAN&gt;result impacted by user interaction with filters.&amp;nbsp; the column is sorted by date column. The cell formula on step 2 is similar to step 1. It is using the result from step 2 in the formula =IF(C3=0,B3/C2,B4+1)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 02:08:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Cumulative-subtraction-Total-that-is-similar-to/m-p/1566236#M31157</guid>
      <dc:creator>kLizzy</dc:creator>
      <dc:date>2020-12-23T02:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure Cumulative subtraction Total that is similar to Excel =IF(C2&gt;B3,0,B3-C2)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Cumulative-subtraction-Total-that-is-similar-to/m-p/1569129#M31258</link>
      <description>&lt;P&gt;If you can share your pbix (link to it on OneDrive, Google Drive, etc.) or a mock up with a represenatitive model, a specific expression can be suggested.&amp;nbsp; Basically, you need to create two variables to calculate the values you'll compare, and then use those in an IF to do the comparison in the Return part of the measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 13:38:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Cumulative-subtraction-Total-that-is-similar-to/m-p/1569129#M31258</guid>
      <dc:creator>mahoneypat</dc:creator>
      <dc:date>2020-12-24T13:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure Cumulative subtraction Total that is similar to Excel =IF(C2&gt;B3,0,B3-C2)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Cumulative-subtraction-Total-that-is-similar-to/m-p/1571023#M31302</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have pbi file at the location below.&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1rDFWhJ0yvlQKr4CcVSNm3VhODHQHnr_E/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1rDFWhJ0yvlQKr4CcVSNm3VhODHQHnr_E/view?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am trying to calculate "Supply"&lt;/P&gt;&lt;P&gt;There are 2 step to calculate this line&lt;/P&gt;&lt;P&gt;Step 1: Cumulative Netting : formula is IF(Demand Total &amp;gt; Prior Cumulative Netting, 0, Prior Cumulative Netting-Cumulative netting)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;From data. 2020-12 = IF(3145&amp;gt;3770, 0, 3770-3145) = 625&lt;/P&gt;&lt;P&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;2021-01 = IF(11362&amp;gt;625,0,625-11362) = 0&lt;/P&gt;&lt;P&gt;Step 2. Supply formula is IF (Step1 = 0,&amp;nbsp;Prior Cumulative Netting/Demand Total, Prior&amp;nbsp;Supply + 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;From data. 2020-12 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= IF (625 = 0,&amp;nbsp;3770/3145,0+1)&amp;nbsp; &amp;nbsp;= 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2021-01&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;nbsp; IF(0=0,625/11362,1+1) = 0.05&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;I greatly appreciate your help!&lt;/P&gt;</description>
      <pubDate>Sun, 27 Dec 2020 07:17:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Cumulative-subtraction-Total-that-is-similar-to/m-p/1571023#M31302</guid>
      <dc:creator>kLizzy</dc:creator>
      <dc:date>2020-12-27T07:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure Cumulative subtraction Total that is similar to Excel =IF(C2&gt;B3,0,B3-C2)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Cumulative-subtraction-Total-that-is-similar-to/m-p/1571225#M31315</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="238072" data-lia-user-login="kLizzy" class="lia-mention lia-mention-user"&gt;kLizzy&lt;/a&gt;&amp;nbsp;would like to ask a favor...can you please explain in Plain English what the calculation for Supply should be WITHOUT referring to an Excel formula?&amp;nbsp; Need to get some context of what you're trying to calculate without deciphering formulas.&amp;nbsp; I believe you have inconsistencies in the formulas that is making this very hard to figure out what you're after.&amp;nbsp;&amp;nbsp;Or if you can provide a link to some background information on supply/demand forecasting, inventory management or other subject matter that would be very helpful.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Dec 2020 18:16:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Cumulative-subtraction-Total-that-is-similar-to/m-p/1571225#M31315</guid>
      <dc:creator>littlemojopuppy</dc:creator>
      <dc:date>2020-12-27T18:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure Cumulative subtraction Total that is similar to Excel =IF(C2&gt;B3,0,B3-C2)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Cumulative-subtraction-Total-that-is-similar-to/m-p/1572204#M31341</link>
      <description>&lt;P&gt;the Supply that I am trying to get to is actually a Months Supply (number of months for the supply).&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) calculate the cumulative netting each month, if demand &amp;gt; on hand then 0, else On hand - Demand&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Months supply, if cumulative netting = 0 then Prior month cumulative netting/Demand, else Prior Months supply +1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2020 15:23:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Cumulative-subtraction-Total-that-is-similar-to/m-p/1572204#M31341</guid>
      <dc:creator>kLizzy</dc:creator>
      <dc:date>2020-12-28T15:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure Cumulative subtraction Total that is similar to Excel =IF(C2&gt;B3,0,B3-C2)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Cumulative-subtraction-Total-that-is-similar-to/m-p/1572207#M31344</link>
      <description>&lt;P&gt;Fair to say that "cumulative netting" is another way to say "inventory remaining after satisfying demand" in any given month?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2020 15:29:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Cumulative-subtraction-Total-that-is-similar-to/m-p/1572207#M31344</guid>
      <dc:creator>littlemojopuppy</dc:creator>
      <dc:date>2020-12-28T15:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure Cumulative subtraction Total that is similar to Excel =IF(C2&gt;B3,0,B3-C2)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Cumulative-subtraction-Total-that-is-similar-to/m-p/1572320#M31350</link>
      <description>&lt;P&gt;yes&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2020 17:08:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Cumulative-subtraction-Total-that-is-similar-to/m-p/1572320#M31350</guid>
      <dc:creator>kLizzy</dc:creator>
      <dc:date>2020-12-28T17:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure Cumulative subtraction Total that is similar to Excel =IF(C2&gt;B3,0,B3-C2)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Cumulative-subtraction-Total-that-is-similar-to/m-p/1575255#M31428</link>
      <description>&lt;P&gt;Download &lt;A href="https://drive.google.com/file/d/1jlD6l4dFNSfZbl0FtUxH1n4VRCrnZoLM/view?usp=sharing" target="_self"&gt;from here&lt;/A&gt; and take a look...&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 15:53:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Cumulative-subtraction-Total-that-is-similar-to/m-p/1575255#M31428</guid>
      <dc:creator>littlemojopuppy</dc:creator>
      <dc:date>2020-12-30T15:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure Cumulative subtraction Total that is similar to Excel =IF(C2&gt;B3,0,B3-C2)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Cumulative-subtraction-Total-that-is-similar-to/m-p/1586383#M31764</link>
      <description>&lt;P&gt;Thank you for getting me to the right direction!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 14:09:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Cumulative-subtraction-Total-that-is-similar-to/m-p/1586383#M31764</guid>
      <dc:creator>kLizzy</dc:creator>
      <dc:date>2021-01-07T14:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure Cumulative subtraction Total that is similar to Excel =IF(C2&gt;B3,0,B3-C2)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Cumulative-subtraction-Total-that-is-similar-to/m-p/1586385#M31765</link>
      <description>&lt;P&gt;You're welcome!&amp;nbsp; Glad I could help!&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 14:10:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Cumulative-subtraction-Total-that-is-similar-to/m-p/1586385#M31765</guid>
      <dc:creator>littlemojopuppy</dc:creator>
      <dc:date>2021-01-07T14:10:24Z</dc:date>
    </item>
  </channel>
</rss>

