<?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 Translate Excel to DAX formula (adding current value to previous value of different column field) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Translate-Excel-to-DAX-formula-adding-current-value-to-previous/m-p/2071354#M46860</link>
    <description>&lt;P&gt;Need some help please!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to translate this into a DAX function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying the below code, but there seems to be a mistake on it... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;P&amp;amp;P Planned (Cumulative)_4 = 
Var PPCurMonth = 'Table'[Start_Date].[Date]
Var PPPrevMonth = date(year(PPCurMonth),month(PPCurMonth)-1,day(PPCurMonth))
Var _PPPlanned = Calculate(SUM('MP - Engine'[P&amp;amp;P Planned]),'MP - Engine'[Start Date]=PPCurMonth)
Var _PPCumulative = Calculate(SUM('MP - Engine'[P&amp;amp;P Planned (Cumulative)_1]),'MP - Engine'[Start Date]=PPPrevMonth)
return
(_PPPlanned + _PPCumulative) + _PPCumulative&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As it is showing the incorrect values below. The correct values should be as above image...&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;9&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Sep 2021 00:49:56 GMT</pubDate>
    <dc:creator>GA1993</dc:creator>
    <dc:date>2021-09-13T00:49:56Z</dc:date>
    <item>
      <title>Translate Excel to DAX formula (adding current value to previous value of different column field)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Translate-Excel-to-DAX-formula-adding-current-value-to-previous/m-p/2071354#M46860</link>
      <description>&lt;P&gt;Need some help please!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to translate this into a DAX function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying the below code, but there seems to be a mistake on it... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;P&amp;amp;P Planned (Cumulative)_4 = 
Var PPCurMonth = 'Table'[Start_Date].[Date]
Var PPPrevMonth = date(year(PPCurMonth),month(PPCurMonth)-1,day(PPCurMonth))
Var _PPPlanned = Calculate(SUM('MP - Engine'[P&amp;amp;P Planned]),'MP - Engine'[Start Date]=PPCurMonth)
Var _PPCumulative = Calculate(SUM('MP - Engine'[P&amp;amp;P Planned (Cumulative)_1]),'MP - Engine'[Start Date]=PPPrevMonth)
return
(_PPPlanned + _PPCumulative) + _PPCumulative&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As it is showing the incorrect values below. The correct values should be as above image...&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;9&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 00:49:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Translate-Excel-to-DAX-formula-adding-current-value-to-previous/m-p/2071354#M46860</guid>
      <dc:creator>GA1993</dc:creator>
      <dc:date>2021-09-13T00:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Translate Excel to DAX formula (adding current value to previous value of different column field)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Translate-Excel-to-DAX-formula-adding-current-value-to-previous/m-p/2071364#M46864</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="307062" data-lia-user-login="GA1993" class="lia-mention lia-mention-user"&gt;GA1993&lt;/a&gt;&amp;nbsp;Sorry, having trouble following, can you post sample data as text and expected output?&lt;BR /&gt;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 01:16:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Translate-Excel-to-DAX-formula-adding-current-value-to-previous/m-p/2071364#M46864</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2021-09-13T01:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Translate Excel to DAX formula (adding current value to previous value of different column field)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Translate-Excel-to-DAX-formula-adding-current-value-to-previous/m-p/2071389#M46865</link>
      <description>&lt;P&gt;Thank you. Actually I thought of something. Is there a way to get the accumulated data just until the EOM meaning the month indicated on the line item?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Feb value = Jan + Feb&lt;/P&gt;&lt;P&gt;Mar value =&amp;nbsp;Jan + Feb + Mar&lt;/P&gt;&lt;P&gt;Apr value =&amp;nbsp;Jan + Feb + Mar + Apr&lt;/P&gt;&lt;P&gt;and so on..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying this code, but it gets the overall accumulated data of 73..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Accumulated = 
SUMX(
    FILTER(
        'MP - Engine',
        'MP - Engine'[Start Date].[Date] &amp;lt;= EOMONTH('MP - Engine'[Start Date].[Date],0)
        ),
    'MP - Engine'[P&amp;amp;P Planned]
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 01:32:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Translate-Excel-to-DAX-formula-adding-current-value-to-previous/m-p/2071389#M46865</guid>
      <dc:creator>GA1993</dc:creator>
      <dc:date>2021-09-13T01:32:23Z</dc:date>
    </item>
  </channel>
</rss>

