<?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 Require help to calculate Cumulative Recognised Revenue until prior month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Require-help-to-calculate-Cumulative-Recognised-Revenue-until/m-p/3660603#M141843</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm seeking assistance with a DAX issue where I'm attempting to incorporate previously recognized revenues in the current month's report. Specifically, when a user is selecting January dates from date slicer having start date and end date,&amp;nbsp; the following cumulative calculations need to be added up in the current month's calculations :&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Prior Cumulative % Complete (highlighted in sky blue in the attached Excel, 67%)&lt;/LI&gt;&lt;LI&gt;Prior Month Cumulative Cost (Actual + Committed Cost)&lt;/LI&gt;&lt;LI&gt;Prior Month Recognized Cost (PriorMnthCumm*Prev%Comp that is point 1* 2)&lt;/LI&gt;&lt;LI&gt;Current Month Recognized Cost ((1-Prev %Comp)*(Actual cost +Committed Cost)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;In essence, I'm looking to create measures that capture the calculations mentioned. Points 3 and 4 involve deriving results from measures created for points 1 and 2, so the primary focus is on developing measures for the calculations related to 1 and 2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Any prompt help or guidance would be greatly appreciated. Thank you!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: &lt;SPAN&gt;Unfortunately, I couldn't attach the Excel sheet, so I've included a screenshot instead. The data above the orange line represents the prior month's data, while the data below the orange line pertains to the current month. I hope this visual aid proves helpful!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jan 2024 14:01:58 GMT</pubDate>
    <dc:creator>Sunila</dc:creator>
    <dc:date>2024-01-25T14:01:58Z</dc:date>
    <item>
      <title>Require help to calculate Cumulative Recognised Revenue until prior month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Require-help-to-calculate-Cumulative-Recognised-Revenue-until/m-p/3660603#M141843</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm seeking assistance with a DAX issue where I'm attempting to incorporate previously recognized revenues in the current month's report. Specifically, when a user is selecting January dates from date slicer having start date and end date,&amp;nbsp; the following cumulative calculations need to be added up in the current month's calculations :&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Prior Cumulative % Complete (highlighted in sky blue in the attached Excel, 67%)&lt;/LI&gt;&lt;LI&gt;Prior Month Cumulative Cost (Actual + Committed Cost)&lt;/LI&gt;&lt;LI&gt;Prior Month Recognized Cost (PriorMnthCumm*Prev%Comp that is point 1* 2)&lt;/LI&gt;&lt;LI&gt;Current Month Recognized Cost ((1-Prev %Comp)*(Actual cost +Committed Cost)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;In essence, I'm looking to create measures that capture the calculations mentioned. Points 3 and 4 involve deriving results from measures created for points 1 and 2, so the primary focus is on developing measures for the calculations related to 1 and 2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Any prompt help or guidance would be greatly appreciated. Thank you!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: &lt;SPAN&gt;Unfortunately, I couldn't attach the Excel sheet, so I've included a screenshot instead. The data above the orange line represents the prior month's data, while the data below the orange line pertains to the current month. I hope this visual aid proves helpful!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 14:01:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Require-help-to-calculate-Cumulative-Recognised-Revenue-until/m-p/3660603#M141843</guid>
      <dc:creator>Sunila</dc:creator>
      <dc:date>2024-01-25T14:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Require help to calculate Cumulative Recognised Revenue until prior month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Require-help-to-calculate-Cumulative-Recognised-Revenue-until/m-p/3662053#M141912</link>
      <description>&lt;P&gt;Here's a general approach to creating these measures:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Prior Cumulative % Complete (Point 1)&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;This measure calculates the cumulative percentage complete until the end of the previous month.&lt;/LI&gt;&lt;LI&gt;You can use DAX functions like TOTALYTD or DATESYTD to calculate the cumulative total.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Prior Month Cumulative Cost (Actual + Committed Cost)&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create a measure that sums up the Actual and Committed costs for the prior month.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Prior Month Recognized Cost (PriorMnthCumm * Prev % Comp)&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Multiply the Prior Month Cumulative Cost by the Prior Cumulative % Complete.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Current Month Recognized Cost ((1 - Prev % Comp) * (Actual cost + Committed Cost))&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Calculate the remaining portion of the current month's costs based on the percentage complete for the current month.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Here's how you might implement these measures in DAX:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Prior Cumulative % Complete =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;[Cumulative % Complete],&lt;BR /&gt;FILTER(&lt;BR /&gt;ALL('Date'[Date]),&lt;BR /&gt;'Date'[Date] &amp;lt;= MAX('Date'[Date]) - 1&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;Prior Month Cumulative Cost =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;[Actual Cost] + [Committed Cost],&lt;BR /&gt;FILTER(&lt;BR /&gt;ALL('Date'[Date]),&lt;BR /&gt;'Date'[Date] &amp;gt;= STARTOFMONTH(MAX('Date'[Date])) - 1 &amp;amp;&amp;amp;&lt;BR /&gt;'Date'[Date] &amp;lt; STARTOFMONTH(MAX('Date'[Date]))&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;Prior Month Recognized Cost = [Prior Month Cumulative Cost] * [Prior Cumulative % Complete]&lt;/P&gt;&lt;P&gt;Current Month Recognized Cost =&lt;BR /&gt;(&lt;BR /&gt;1 - [Prior Cumulative % Complete]&lt;BR /&gt;) * (&lt;BR /&gt;[Actual Cost] + [Committed Cost]&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Please adjust the measures according to your data model and requirements. Ensure that you have the necessary date and cost columns in your data model to perform these calculations effectively.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;STRONG&gt;If this post&amp;nbsp;helps, then please consider&amp;nbsp;Accepting it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In case there is still a problem, please feel free and explain your issue in detail,&amp;nbsp;It will be my pleasure to assist you in any way I can.&lt;/STRONG&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 26 Jan 2024 05:58:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Require-help-to-calculate-Cumulative-Recognised-Revenue-until/m-p/3662053#M141912</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2024-01-26T05:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Require help to calculate Cumulative Recognised Revenue until prior month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Require-help-to-calculate-Cumulative-Recognised-Revenue-until/m-p/3662112#M141914</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="564261" data-lia-user-login="Sunila" class="lia-mention lia-mention-user"&gt;Sunila&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;If I understand correctly, the issue is that you want to calculate recognized revenue until prior month. Please &lt;SPAN&gt;try the following methods and check if they can solve your problem:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1.Create a measure that sums the percentage of the previous month.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Prior Cumulative % Complete =
CALCULATE (
    SUM ( Table1[Cost] ) / SUM ( Table1[Revenue] ),
    FILTER (
        ALLSELECTED ( Table1[Date] ),
        Table1[Date] &amp;lt;= MIN ( Table1[Date] )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2.For the cumulative cost of the prior month, use the following DAX formula.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Prior Month Cumulative Cost = 
CALCULATE (
    SUM ( Table1[Cost] ),
    FILTER (
        ALLSELECTED ( Table1[Date] ),
        Table1[Date] &amp;gt;= EOMONTH ( MIN ( Table1[Date] ), -1 ) &amp;amp;&amp;amp;
        Table1[Date] &amp;lt; MIN ( Table1[Date] )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3.For the Prior Month recognized cost, use the following DAX formula.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Prior Month Recognized Cost = 
[Prior Month Cumulative Cost] * [Prior Cumulative % Complete]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;4.For the current month recognized cost, use the following DAX formula.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Current Month Recognized Cost = 
(
    1 - [Prior Cumulative % Complete]
) * (
    SUM ( Table1[Cost] ) + SUM ( Table1[Committed Cost] )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Wisdom Wu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 06:45:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Require-help-to-calculate-Cumulative-Recognised-Revenue-until/m-p/3662112#M141914</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-26T06:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Require help to calculate Cumulative Recognised Revenue until prior month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Require-help-to-calculate-Cumulative-Recognised-Revenue-until/m-p/3662337#M141920</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Calculating Delivered Rev based on your suggested dAX for cost, unfortunately, does not provide the expected results&lt;/P&gt;&lt;DIV&gt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; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'Delivered Revenue'&lt;/SPAN&gt;&lt;SPAN&gt;[LEDGERTRANSDATE]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt; &lt;/SPAN&gt;&lt;SPAN&gt;[Selected Start Date]&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Lets take selected user date as 01/01/2024 so as per the suggested DAX, it would capture data equal to or greater then 31/12/2023 which does not solve the purpose. I need cumulative rev until prior month.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 26 Jan 2024 09:05:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Require-help-to-calculate-Cumulative-Recognised-Revenue-until/m-p/3662337#M141920</guid>
      <dc:creator>Sunila</dc:creator>
      <dc:date>2024-01-26T09:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Require help to calculate Cumulative Recognised Revenue until prior month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Require-help-to-calculate-Cumulative-Recognised-Revenue-until/m-p/3662454#M141923</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="403667" data-lia-user-login="123abc" class="lia-mention lia-mention-user"&gt;123abc&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am focusing on calculating cost for now. I did try substituting your DAX cost, but unfortunatley it does not seem to be working as expected. Please see my above comment.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 09:31:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Require-help-to-calculate-Cumulative-Recognised-Revenue-until/m-p/3662454#M141923</guid>
      <dc:creator>Sunila</dc:creator>
      <dc:date>2024-01-26T09:31:00Z</dc:date>
    </item>
  </channel>
</rss>

