<?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 production - investment only for the first year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-production-investment-only-for-the-first-year/m-p/773643#M3813</link>
    <description>&lt;P&gt;Should be something along the lines of:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Investment = IF([Production]&amp;lt;=0,BLANK(),[Production] - [Production Investment])&lt;/PRE&gt;</description>
    <pubDate>Thu, 22 Aug 2019 21:40:14 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2019-08-22T21:40:14Z</dc:date>
    <item>
      <title>Calculate production - investment only for the first year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-production-investment-only-for-the-first-year/m-p/773633#M3811</link>
      <description>&lt;P&gt;Hello I need to calculate the difference between production and Investment but only for the year In which the production starts, that means that Production &amp;gt; 0, using DAX like in the following table, can you help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Product&lt;/TD&gt;&lt;TD&gt;Year&lt;/TD&gt;&lt;TD&gt;Production&lt;/TD&gt;&lt;TD&gt;Production - Investment&lt;/TD&gt;&lt;TD&gt;Investment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;-600&lt;/TD&gt;&lt;TD&gt;700&lt;/TD&gt;&lt;/TR&gt;&lt;TR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lt;TD&gt;789&lt;/TD&gt;&lt;TD&gt;798&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 22 Aug 2019 21:12:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-production-investment-only-for-the-first-year/m-p/773633#M3811</guid>
      <dc:creator>OscarSuarez10</dc:creator>
      <dc:date>2019-08-22T21:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate production - investment only for the first year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-production-investment-only-for-the-first-year/m-p/773643#M3813</link>
      <description>&lt;P&gt;Should be something along the lines of:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Investment = IF([Production]&amp;lt;=0,BLANK(),[Production] - [Production Investment])&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Aug 2019 21:40:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-production-investment-only-for-the-first-year/m-p/773643#M3813</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2019-08-22T21:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate production - investment only for the first year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-production-investment-only-for-the-first-year/m-p/774296#M3838</link>
      <description>&lt;P&gt;Hello, Thank You for your help, the thing is that I need to subtract the investment only in the year when the production starts&amp;nbsp; &amp;nbsp;(production &amp;gt; 0) , how can I do that?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 12:43:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-production-investment-only-for-the-first-year/m-p/774296#M3838</guid>
      <dc:creator>OscarSuarez10</dc:creator>
      <dc:date>2019-08-23T12:43:01Z</dc:date>
    </item>
  </channel>
</rss>

