<?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: Recursive Year-over-Year Calculation in Power BI DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4120946#M163607</link>
    <description>&lt;P&gt;Alexis, thank you very much.&lt;/P&gt;&lt;P&gt;I think I have finished all the calculations and dynamic slicers, and it would not have been possible without your help.&lt;BR /&gt;&lt;BR /&gt;I need to get used to these approach, and understand well well each variable calculated in each measure.&lt;BR /&gt;&lt;BR /&gt;thank you&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Aug 2024 14:31:47 GMT</pubDate>
    <dc:creator>menphis21</dc:creator>
    <dc:date>2024-08-27T14:31:47Z</dc:date>
    <item>
      <title>Recursive Year-over-Year Calculation in Power BI DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4113461#M163258</link>
      <description>&lt;P class=""&gt;Hello everyone,&lt;/P&gt;&lt;P class=""&gt;I'm working on a Power BI report and I'm facing a challenge with a recursive calculation for adjusted revenues. I need to calculate the adjusted revenue for the current year based on the previous year's adjusted revenue, factoring in a growth rate percentage that can be dynamically adjusted by the user through a slicer.&lt;/P&gt;&lt;P class=""&gt;Here's the scenario:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I have a table named&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Global&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;with a column&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;[Expenses]&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;representing the total revenues for each year.&lt;/LI&gt;&lt;LI&gt;There's a slicer allowing the user to adjust the growth rate percentage, which is represented by the measure&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;[% Growth].&lt;/LI&gt;&lt;LI&gt;I want to calculate the adjusted revenues such that for years up to and including 2024, it simply takes the sum of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;[Expenses]. For years after 2024, it should take the previous year's adjusted revenue and multiply it by&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(1 + [% Growth]).&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;The challenge is to reference the adjusted revenue of the previous year in a measure, which seems to require a recursive calculation. Here's the DAX formula I've been trying to use:&lt;BR /&gt;AdjustedRevenues =&lt;BR /&gt;VAR defvalue = SUM('Global'[Expenses])&lt;BR /&gt;RETURN&lt;BR /&gt;IF(&lt;BR /&gt;MAX('Years filter'[Year]) &amp;lt;= 2024,&lt;BR /&gt;CALCULATE(defvalue),&lt;BR /&gt;CALCULATE([AdjustedRevenues], DATEADD('Years filter'[Year], -1, YEAR)) * (1 + [% growth])&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;% growth =&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Global'&lt;/SPAN&gt;&lt;SPAN&gt;[growth]&lt;/SPAN&gt;&lt;SPAN&gt;)*&lt;/SPAN&gt;&lt;SPAN&gt;100&lt;/SPAN&gt;&lt;SPAN&gt;+&lt;/SPAN&gt;&lt;SPAN&gt;[AdjustementvalueRevenues% Value]&lt;/SPAN&gt;&lt;SPAN&gt;)/&lt;/SPAN&gt;&lt;SPAN&gt;100&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class=""&gt;However, I'm aware that DAX does not support direct recursion. I'm looking for a way to achieve this year-over-year calculation without recursion. How can I structure my DAX formula or data model to calculate the adjusted revenues correctly?&lt;/P&gt;&lt;P class=""&gt;Any help or guidance would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 12:29:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4113461#M163258</guid>
      <dc:creator>menphis21</dc:creator>
      <dc:date>2024-08-22T12:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Year-over-Year Calculation in Power BI DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4113573#M163263</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="396273" data-lia-user-login="menphis21" class="lia-mention lia-mention-user"&gt;menphis21&lt;/a&gt;&amp;nbsp;Well, if it is truly recursive then there's not much you can do. However, there are pseudo-recursive problems, recursive problems that you don't have to solve via recursion. Would need sample data to test with and see if yours is one of those. Here is a video I did on psuedo-recursive&amp;nbsp;problems.&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="39298" data-lia-user-login="AlexisOlson" class="lia-mention lia-mention-user"&gt;AlexisOlson&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;have also done amazing work on this front.&lt;/P&gt;
&lt;P&gt;&lt;div data-video-id="https://youtu.be/K_ccDrfMWVA" data-video-remote-vid="https://youtu.be/K_ccDrfMWVA" class="lia-video-container lia-media-is-center lia-media-size-medium"&gt;&lt;iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FK_ccDrfMWVA%3Ffeature%3Doembed&amp;amp;display_name=YouTube&amp;amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DK_ccDrfMWVA&amp;amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FK_ccDrfMWVA%2Fhqdefault.jpg&amp;amp;type=text%2Fhtml&amp;amp;schema=youtube" allowfullscreen="" style="max-width: 100%"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 13:33:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4113573#M163263</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-08-22T13:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Year-over-Year Calculation in Power BI DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4113881#M163275</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;for the tag.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="396273" data-lia-user-login="menphis21" class="lia-mention lia-mention-user"&gt;menphis21&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;When you say "&lt;SPAN&gt;For years after 2024, it should take the previous year's adjusted revenue and multiply it by&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;(1 + [% Growth])." Do you mean the % Growth of 2024? Or do you have Growth forecast data for future years?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Please provide sample PBIX file&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 16:16:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4113881#M163275</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-08-22T16:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Year-over-Year Calculation in Power BI DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4114057#M163283</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;, Thank you.&lt;BR /&gt;yes it should take the previous year's adjusted revenue.&lt;BR /&gt;i am joining the pbix file and also the excel where you will see exactly the formula (but in excel its simple)&lt;BR /&gt;&lt;A href="https://jumbomail.me/j/7Syf_0w1xkG_o3J" target="_blank"&gt;https://jumbomail.me/j/7Syf_0w1xkG_o3J&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you for your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 18:20:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4114057#M163283</guid>
      <dc:creator>menphis21</dc:creator>
      <dc:date>2024-08-22T18:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Year-over-Year Calculation in Power BI DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4114092#M163286</link>
      <description>&lt;P&gt;This is an easy case. You just need to multiply by (1 + [%growth]) as many times as there are years beyond 2024.&lt;BR /&gt;&lt;BR /&gt;Somthing like this:&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;AdjustedRevenues = 
VAR _LastKnownYear = 2024
VAR _Year = YEAR ( MAX ( 'Years filter'[Date] ) )
VAR _Revenue = SUM ( 'Global'[Total Revenues] )
VAR _LastKnownRevenue =
    CALCULATE ( 
        SUM ( 'Global'[Total Revenues] ),
        ALL ( 'Years filter' ),
        'Years filter'[Year] = _LastKnownYear
    )
VAR _FutureYears = _Year - _LastKnownYear
VAR _Growth = POWER ( 1 + [AdjustementvalueRevenues% Value] / 100, _FutureYears )
VAR _Result =
    IF (
        _FutureYears &amp;lt;= 0,
        _Revenue,
        _LastKnownRevenue * _Growth
    )
RETURN
    _Result&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See attached.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 18:58:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4114092#M163286</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2024-08-22T18:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Year-over-Year Calculation in Power BI DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4114182#M163293</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="39298" data-lia-user-login="AlexisOlson" class="lia-mention lia-mention-user"&gt;AlexisOlson&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your time.&lt;/P&gt;&lt;P&gt;Thats not exactly what i am looking for. I want to be able, from 2024, to take from the initial value of GDP Growth, and add to it, a percent.&lt;BR /&gt;for example, if i add 1% in my GDP Growth, i will have this below, and calculate as shown in the excel&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;GDP Growth&lt;/TD&gt;&lt;TD&gt;GDP Growth adjusted&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0.047596827&lt;/TD&gt;&lt;TD&gt;0.0475968&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0.057535264&lt;/TD&gt;&lt;TD&gt;0.0575353&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;-0.005054405&lt;/TD&gt;&lt;TD&gt;-0.005054&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0.116065759&lt;/TD&gt;&lt;TD&gt;0.1160658&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0.115058794&lt;/TD&gt;&lt;TD&gt;0.1150588&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0.059303776&lt;/TD&gt;&lt;TD&gt;0.0593038&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0.04&lt;/TD&gt;&lt;TD&gt;0.05&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0.05&lt;/TD&gt;&lt;TD&gt;0.06&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0.08&lt;/TD&gt;&lt;TD&gt;0.09&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0.054&lt;/TD&gt;&lt;TD&gt;0.064&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0.054&lt;/TD&gt;&lt;TD&gt;0.064&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0.054&lt;/TD&gt;&lt;TD&gt;0.064&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0.054&lt;/TD&gt;&lt;TD&gt;0.064&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 22 Aug 2024 20:32:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4114182#M163293</guid>
      <dc:creator>menphis21</dc:creator>
      <dc:date>2024-08-22T20:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Year-over-Year Calculation in Power BI DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4114260#M163303</link>
      <description>&lt;P&gt;Like this?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;AdjustedRevenues = 
VAR _Adj = [AdjustementvalueRevenues% Value] / 100
VAR _LastKnownYear = 2024
VAR _Year = YEAR ( MAX ( 'Years filter'[Date] ) )
VAR _Revenue = SUM ( 'Global'[Total Revenues] )
VAR _LastKnownRevenue =
    CALCULATE ( 
        SUM ( 'Global'[Total Revenues] ),
        ALL ( 'Years filter' ),
        'Years filter'[Year] = _LastKnownYear
    )
VAR _FutureYears_ =
    CALCULATETABLE (
        SUMMARIZE ( 'Global', 'Global'[Year], 'Global'[GDP Growth] ),
        ALL ( 'Global' ),
        'Years filter'[Year] &amp;gt; _LastKnownYear &amp;amp;&amp;amp; 'Years filter'[Year] &amp;lt;= _Year
    )
VAR _Growth =
    PRODUCTX (
        _FutureYears_,
        1 + 'Global'[GDP Growth] + _Adj
    )
VAR _Result =
    IF (
        _Year &amp;lt;= _LastKnownYear,
        _Revenue,
        _LastKnownRevenue * _Growth
    )
RETURN
    _Result&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The basic principle is the same.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 21:30:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4114260#M163303</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2024-08-22T21:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Year-over-Year Calculation in Power BI DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4116967#M163442</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="39298" data-lia-user-login="AlexisOlson" class="lia-mention lia-mention-user"&gt;AlexisOlson&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;You are a genius ! big thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;i have just add the scenario ( i have a filter in my dashboard)&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; _Scenario = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt; ( 'Global'[Scenario] )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; _FutureYears_ =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATETABLE&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUMMARIZE&lt;/SPAN&gt;&lt;SPAN&gt; ( 'Global', 'Global'[Year],'Global'[Scenario], 'Global'[גידול בתוצר] ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt; ( 'Global' ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Years filter'[Year] &amp;gt; _LastKnownYear &amp;amp;&amp;amp; 'Years filter'[Year] &amp;lt;= _Year,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Global'[Scenario] = _Scenario&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;BR /&gt;&lt;BR /&gt;One more time, thank you !&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 24 Aug 2024 20:03:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4116967#M163442</guid>
      <dc:creator>menphis21</dc:creator>
      <dc:date>2024-08-24T20:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Year-over-Year Calculation in Power BI DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4117236#M163455</link>
      <description>&lt;P class=""&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="39298" data-lia-user-login="AlexisOlson" class="lia-mention lia-mention-user"&gt;AlexisOlson&lt;/a&gt;&amp;nbsp;one more time, thank you for your precious help.&lt;BR /&gt;I'm encountering other difficulties regarding the impact of parameters. I have a parameter that adjusts the defense budget, which in turn affects the deficit and consequently the public debt.&lt;BR /&gt;So, how can i calculate the public debt which it depend on some mesures that we calculate before?&lt;BR /&gt;i cant use the same method as i understand&lt;/P&gt;&lt;P class=""&gt;Additionally, the interest rate is dependent, so I end up with circular references and can't find a way out.&lt;/P&gt;&lt;P class=""&gt;Here is the link with the updated Excel file and PBI report, if it can help.&lt;/P&gt;&lt;P class=""&gt;How can i use the same method for a value that is a measure (deficit_) ?&lt;/P&gt;&lt;P class=""&gt;Thank you again for your efforts&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://jumbomail.me/j/2ovVWw6NdUqHH8p" target="_blank" rel="noopener"&gt;https://jumbomail.me/j/2ovVWw6NdUqHH8p&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Aug 2024 14:55:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4117236#M163455</guid>
      <dc:creator>menphis21</dc:creator>
      <dc:date>2024-08-25T14:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Year-over-Year Calculation in Power BI DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4118987#M163530</link>
      <description>&lt;P&gt;The debt is the last known debt minus the cumulative sum of land sales and deficit for each projected year.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;PublicDebt = 
VAR _LastKnownYear = 2024
VAR _Year = YEAR ( MAX ( 'Years filter'[Date] ) )
VAR _Debt = SUM ( 'Global'[Public debt] )
VAR _LastKnownDebt =
    CALCULATE ( 
        SUM ( 'Global'[Public debt] ),
        ALL ( 'Years filter' ),
        'Years filter'[Year] = _LastKnownYear
    )
VAR _FutureYears_ =
    FILTER (
        ALL ( 'Years filter' ),
        'Years filter'[Year] &amp;gt; _LastKnownYear &amp;amp;&amp;amp; 'Years filter'[Year] &amp;lt;= _Year
    )
VAR _CumulativeDebt =
    SUMX (
        _FutureYears_,
        0.004 * [Adjusted Nominal GDP] + [Deficit_]
    )
VAR _Result =
    IF (
        _Year &amp;lt;= _LastKnownYear,
        _Debt,
        _LastKnownDebt - _CumulativeDebt
    )
RETURN
    _Result&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 26 Aug 2024 15:54:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4118987#M163530</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2024-08-26T15:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Year-over-Year Calculation in Power BI DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4119385#M163546</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="39298" data-lia-user-login="AlexisOlson" class="lia-mention lia-mention-user"&gt;AlexisOlson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your time and your precious solution.&lt;BR /&gt;there is something that i dont understand.&lt;BR /&gt;why for calculate the cumulative debt, you are multiplying the Adjusted nominal GDP by 0.04 + deficit ?&lt;BR /&gt;That works, no doubt haha but i would be happy to understand.&lt;BR /&gt;as you said&amp;nbsp; in the beginning, "&lt;SPAN&gt;The debt is the last known debt minus the cumulative sum of land sales and deficit for each projected year."&lt;BR /&gt;&lt;BR /&gt;if i want to use the same definition from excel, how would i do it ?&lt;BR /&gt;Thank you&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 20:34:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4119385#M163546</guid>
      <dc:creator>menphis21</dc:creator>
      <dc:date>2024-08-26T20:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Year-over-Year Calculation in Power BI DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4119394#M163549</link>
      <description>&lt;P&gt;I just used the definitions from Excel. It has&lt;/P&gt;
&lt;PRE&gt;Land Sales = (Nominal GDP - Before Tax) * 0.4%&lt;/PRE&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;PRE&gt;Public debt = previous public debt - Land Sales - Deficit&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 20:48:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4119394#M163549</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2024-08-26T20:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Year-over-Year Calculation in Power BI DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4120946#M163607</link>
      <description>&lt;P&gt;Alexis, thank you very much.&lt;/P&gt;&lt;P&gt;I think I have finished all the calculations and dynamic slicers, and it would not have been possible without your help.&lt;BR /&gt;&lt;BR /&gt;I need to get used to these approach, and understand well well each variable calculated in each measure.&lt;BR /&gt;&lt;BR /&gt;thank you&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 14:31:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4120946#M163607</guid>
      <dc:creator>menphis21</dc:creator>
      <dc:date>2024-08-27T14:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Year-over-Year Calculation in Power BI DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4132944#M164149</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="39298" data-lia-user-login="AlexisOlson" class="lia-mention lia-mention-user"&gt;AlexisOlson&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;hope you are doing well.&lt;BR /&gt;i am sorry to one more time disturb. I succeed to calculate all the rest of calculations&lt;BR /&gt;but i noticed that the interest is a variable that is included on the total expenses and is calculated from the expenses interest and expenses interest is depending on the public debt and debt interest rate and public debt is depending on defecit and it causes me a circular reference.&lt;BR /&gt;Its easier to understand in the excel file:&lt;BR /&gt;&lt;A href="https://jumbomail.me/j/srtaD_HQ7Emt4p2" target="_blank"&gt;https://jumbomail.me/j/srtaD_HQ7Emt4p2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;thank you one more time for your precious help&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 08:50:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4132944#M164149</guid>
      <dc:creator>menphis21</dc:creator>
      <dc:date>2024-09-04T08:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Year-over-Year Calculation in Power BI DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4133897#M164199</link>
      <description>&lt;P&gt;I'm not sure how to help here. I don't really know how the logic of your model is supposed to work, so I don't know how to resolve circular dependencies in the Excel model. I was able to help turn an Excel model into Power BI measures by converting recursive logic into cumulative logic but if the recursive logic is broken, I don't have a solid foundation to start from.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 17:39:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4133897#M164199</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2024-09-04T17:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Year-over-Year Calculation in Power BI DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4134159#M164212</link>
      <description>&lt;P&gt;Thank you.&lt;BR /&gt;I will try to simplify.&lt;BR /&gt;when i drag the formula in the 2024, it gave me the same result.&lt;BR /&gt;So lets say that the expenses interest, its the prior year public multiplied by the debt interest&lt;BR /&gt;&lt;BR /&gt;there is a way to calculate it ?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.jumbomail.me/l/en/gallery/694B6F3845536E3859446E464B3342347436653838673D3D/1235813566" target="_blank"&gt;https://www.jumbomail.me/l/en/gallery/694B6F3845536E3859446E464B3342347436653838673D3D/1235813566&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 21:59:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4134159#M164212</guid>
      <dc:creator>menphis21</dc:creator>
      <dc:date>2024-09-04T21:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Year-over-Year Calculation in Power BI DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4139151#M164425</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="39298" data-lia-user-login="AlexisOlson" class="lia-mention lia-mention-user"&gt;AlexisOlson&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;sorry to bother. Any idea ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 08 Sep 2024 07:24:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4139151#M164425</guid>
      <dc:creator>menphis21</dc:creator>
      <dc:date>2024-09-08T07:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Year-over-Year Calculation in Power BI DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4140940#M164558</link>
      <description>&lt;P&gt;This has gotten pretty far from the original question and I don't remember all the details. Can you write a new question summarizing what you've got so far and what part you're still stuck on?&lt;BR /&gt;&lt;BR /&gt;Please include sample data / attachments, formulas, and expected results as described here:&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/td-p/1447523" target="_blank"&gt;How to Get Your Question Answered Quickly - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 15:24:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4140940#M164558</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2024-09-09T15:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Year-over-Year Calculation in Power BI DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4167283#M165551</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="39298" data-lia-user-login="AlexisOlson" class="lia-mention lia-mention-user"&gt;AlexisOlson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you, sorry I was off for a few days.&lt;BR /&gt;of course I'm going to recap.&lt;BR /&gt;The interest rate is part of the Total expenses. Starting from 2025, the interest rate corresponds to Interest expenses.&lt;BR /&gt;The &lt;STRONG&gt;interest expenses&lt;/STRONG&gt; are calculated by taking the prior public debt multiplied by the debt interest rate.&lt;BR /&gt;The &lt;STRONG&gt;public debt&lt;/STRONG&gt; is calculated by taking the prior public debt minus the deficit minus land sales. The &lt;STRONG&gt;deficit&lt;/STRONG&gt; is revenues minus expenses.&lt;BR /&gt;And &lt;STRONG&gt;expenses&lt;/STRONG&gt; should contains this "calculated" interest rates and that&lt;SPAN&gt; creates a circular loop in Power BI (in the measure Expenses). &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If you have any guidance, I'm all ears. Thank you again for your help I am attaching the excel file and power bi files&lt;BR /&gt;&lt;A href="https://jumbomail.me/j/t9MJgZ436UqXLvQ" target="_blank"&gt;https://jumbomail.me/j/t9MJgZ436UqXLvQ&lt;/A&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 23 Sep 2024 12:54:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursive-Year-over-Year-Calculation-in-Power-BI-DAX/m-p/4167283#M165551</guid>
      <dc:creator>menphis21</dc:creator>
      <dc:date>2024-09-23T12:54:41Z</dc:date>
    </item>
  </channel>
</rss>

