<?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: YoY Growth Card in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-Growth-Card/m-p/4679412#M179232</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="258402" data-lia-user-login="JajatiDev" class="lia-mention lia-mention-user"&gt;JajatiDev&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to the Microsoft Community Forum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;YOY Growth Measure:&lt;/P&gt;
&lt;P&gt;YoY Growth Current FY :=&lt;BR /&gt;VAR _MaxFY = MAX(Calendar_Table[FY_Year]) or use MAXX(ALL(Calendar_Table), Calendar_Table[FY_Year])&lt;BR /&gt;VAR _CY = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;[Total Order Volume],&lt;BR /&gt;Calendar_Table[FY_Year] = _MaxFY&lt;BR /&gt;)&lt;BR /&gt;VAR _LY = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;[Total Order Volume],&lt;BR /&gt;Calendar_Table[FY_Year] = _MaxFY - 1&lt;BR /&gt;)&lt;BR /&gt;VAR _HasData = NOT(ISBLANK(_CY)) &amp;amp;&amp;amp; NOT(ISBLANK(_LY))&lt;BR /&gt;RETURN&lt;BR /&gt;IF(_HasData, DIVIDE(_CY, _LY) - 1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer below community threads.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/MTD-amp-YOY-in-Card-Visual/m-p/932969" target="_blank"&gt;Solved: Re: MTD &amp;amp; %YOY in Card Visual - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-display-year-on-year-growth-rate/m-p/818916" target="_blank"&gt;Solved: How to display year-on-year growth rate - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Need-to-calculate-Year-over-Year-Growth-for-quot-year-quot-data/td-p/2264711" target="_blank"&gt;Solved: Need to calculate Year-over-Year Growth for "year"... - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If my response has resolved your query, please mark it as the Accepted Solution to assist others. Additionally, a 'Kudos' would be appreciated if you found my response helpful.&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 May 2025 05:54:24 GMT</pubDate>
    <dc:creator>v-dineshya</dc:creator>
    <dc:date>2025-05-05T05:54:24Z</dc:date>
    <item>
      <title>YoY Growth Card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-Growth-Card/m-p/4677883#M179160</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I have created the measure to calculate yoy growth.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;VAR _CY = [Total Order Volume]
VAR _LY = 
    CALCULATE( 
        [Total Order Volume],
        DATESBETWEEN( 
            Calendar_Table[Date],
            EDATE(MIN(Calendar_Table[Date]), -12),
            EOMONTH(MAX(Consolidated_Order_Book[ReceiveDate]), -12)
        )
    )
VAR _Check = _CY &amp;amp;&amp;amp; _LY &amp;amp;&amp;amp; HASONEVALUE(Calendar_Table[FY_Year])
VAR _Growth = IF(_Check, DIVIDE(_CY,_LY) -1)

RETURN
    _Growth&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;The output is giving me the desired result when presented in a graph or table&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;However, I wish to take this a step forward by presenting the growth rate for the current year in a card dynamically without applying external filters. which I have failed to achieve because the care is returning blank.&lt;BR /&gt;&lt;BR /&gt;Please advise the changes I need to make in the measure to pick the growth rate for FY-25 only.&lt;BR /&gt;The financial year in the calculation begins in April and ends in March.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2025 14:50:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-Growth-Card/m-p/4677883#M179160</guid>
      <dc:creator>JajatiDev</dc:creator>
      <dc:date>2025-05-02T14:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: YoY Growth Card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-Growth-Card/m-p/4677899#M179161</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="258402" data-lia-user-login="JajatiDev" class="lia-mention lia-mention-user"&gt;JajatiDev&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need to dynamically determine the current financial year based on today's date, you can use the following approach:&lt;/P&gt;
&lt;P&gt;DAX&lt;BR /&gt;VAR CurrentDate = TODAY()&lt;BR /&gt;VAR CurrentFY = &lt;BR /&gt;IF(&lt;BR /&gt;MONTH(CurrentDate) &amp;gt;= 4,&lt;BR /&gt;YEAR(CurrentDate) &amp;amp; "/" &amp;amp; YEAR(CurrentDate) + 1,&lt;BR /&gt;YEAR(CurrentDate) - 1 &amp;amp; "/" &amp;amp; YEAR(CurrentDate)&lt;BR /&gt;)&lt;BR /&gt;VAR PreviousFY = &lt;BR /&gt;IF(&lt;BR /&gt;MONTH(CurrentDate) &amp;gt;= 4,&lt;BR /&gt;YEAR(CurrentDate) - 1 &amp;amp; "/" &amp;amp; YEAR(CurrentDate),&lt;BR /&gt;YEAR(CurrentDate) - 2 &amp;amp; "/" &amp;amp; YEAR(CurrentDate) - 1&lt;BR /&gt;)&lt;BR /&gt;VAR _CY = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;[Total Order Volume],&lt;BR /&gt;FILTER(&lt;BR /&gt;Calendar_Table,&lt;BR /&gt;Calendar_Table[FY_Year] = CurrentFY&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;VAR _LY = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;[Total Order Volume],&lt;BR /&gt;FILTER(&lt;BR /&gt;Calendar_Table,&lt;BR /&gt;Calendar_Table[FY_Year] = PreviousFY&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;VAR _Check = _CY &amp;amp;&amp;amp; _LY&lt;BR /&gt;VAR _Growth = IF(_Check, DIVIDE(_CY, _LY) - 1)&lt;/P&gt;
&lt;P&gt;RETURN&lt;BR /&gt;_Growth&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2025 15:17:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-Growth-Card/m-p/4677899#M179161</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-05-02T15:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: YoY Growth Card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-Growth-Card/m-p/4678061#M179171</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625922" data-lia-user-login="bhanu_gautam" class="lia-mention lia-mention-user"&gt;bhanu_gautam&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;I tried your measure; however, the output is not as desired.&lt;BR /&gt;I need the measure to be dynamic to project the current year growth/decline only. I'm currently achieving the output by applying the year filter to the visual.&lt;BR /&gt;I dont want to put any filters. The dax measure should take care of it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2025 18:09:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-Growth-Card/m-p/4678061#M179171</guid>
      <dc:creator>JajatiDev</dc:creator>
      <dc:date>2025-05-02T18:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: YoY Growth Card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-Growth-Card/m-p/4679412#M179232</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="258402" data-lia-user-login="JajatiDev" class="lia-mention lia-mention-user"&gt;JajatiDev&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to the Microsoft Community Forum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;YOY Growth Measure:&lt;/P&gt;
&lt;P&gt;YoY Growth Current FY :=&lt;BR /&gt;VAR _MaxFY = MAX(Calendar_Table[FY_Year]) or use MAXX(ALL(Calendar_Table), Calendar_Table[FY_Year])&lt;BR /&gt;VAR _CY = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;[Total Order Volume],&lt;BR /&gt;Calendar_Table[FY_Year] = _MaxFY&lt;BR /&gt;)&lt;BR /&gt;VAR _LY = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;[Total Order Volume],&lt;BR /&gt;Calendar_Table[FY_Year] = _MaxFY - 1&lt;BR /&gt;)&lt;BR /&gt;VAR _HasData = NOT(ISBLANK(_CY)) &amp;amp;&amp;amp; NOT(ISBLANK(_LY))&lt;BR /&gt;RETURN&lt;BR /&gt;IF(_HasData, DIVIDE(_CY, _LY) - 1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer below community threads.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/MTD-amp-YOY-in-Card-Visual/m-p/932969" target="_blank"&gt;Solved: Re: MTD &amp;amp; %YOY in Card Visual - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-display-year-on-year-growth-rate/m-p/818916" target="_blank"&gt;Solved: How to display year-on-year growth rate - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Need-to-calculate-Year-over-Year-Growth-for-quot-year-quot-data/td-p/2264711" target="_blank"&gt;Solved: Need to calculate Year-over-Year Growth for "year"... - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If my response has resolved your query, please mark it as the Accepted Solution to assist others. Additionally, a 'Kudos' would be appreciated if you found my response helpful.&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2025 05:54:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-Growth-Card/m-p/4679412#M179232</guid>
      <dc:creator>v-dineshya</dc:creator>
      <dc:date>2025-05-05T05:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: YoY Growth Card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-Growth-Card/m-p/4684446#M179410</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="258402" data-lia-user-login="JajatiDev" class="lia-mention lia-mention-user"&gt;JajatiDev&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If my response has resolved your query, please mark it as the Accepted Solution to assist others. Additionally, a 'Kudos' would be appreciated if you found my response helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 10:09:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-Growth-Card/m-p/4684446#M179410</guid>
      <dc:creator>v-dineshya</dc:creator>
      <dc:date>2025-05-08T10:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: YoY Growth Card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-Growth-Card/m-p/4686961#M179510</link>
      <description>&lt;P&gt;Thank you for all the valuable suggestions.&lt;BR /&gt;I was able to work it out.&lt;BR /&gt;Included the solution below for everyone's reference.&lt;BR /&gt;&lt;BR /&gt;Also, sharing the screenshot of the card with the final output&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;YoY_OrderFlow% = 
VAR _currentDate = TODAY()
VAR _currentYear = 
        IF( MONTH(_currentDate) &amp;gt;= 4, YEAR(_currentDate) + 1, YEAR( _currentDate))
VAR _currentFY = "FY-" &amp;amp; _currentYear
RETURN 
CALCULATE(
    VAR _cy = [TotalOrderedQuantity]
    VAR _ly_startDate = 
        EDATE( MIN( Calendar_Table[Date]), -12)
    VAR _ly_endDate = 
        EOMONTH( MAX( OrderData[ReceiveDate] ), -12)
    VAR _ly = 
        CALCULATE( 
            [TotalOrderedQuantity],
            DATESBETWEEN( 
                Calendar_Table[Date],
                _ly_startDate,
                _ly_endDate
            ),
            REMOVEFILTERS( Calendar_Table[FY_Year] )
        )
    VAR isValidForGrowth = NOT ISBLANK( _cy ) &amp;amp;&amp;amp; NOT ISBLANK( _ly ) &amp;amp;&amp;amp; _ly &amp;lt;&amp;gt; 0
    VAR _growth = IF( isValidForGrowth, DIVIDE( _cy, _ly) - 1)
    RETURN
        _growth,
        FILTER( 
            ALL( Calendar_Table[FY_Year] ),
            Calendar_Table[FY_Year] = _currentFY
        )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 May 2025 18:08:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-Growth-Card/m-p/4686961#M179510</guid>
      <dc:creator>JajatiDev</dc:creator>
      <dc:date>2025-05-10T18:08:46Z</dc:date>
    </item>
  </channel>
</rss>

