<?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: DAX formula for calculating % growth of profits over period of 5 years in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-for-calculating-growth-of-profits-over-period-of-5/m-p/3946912#M153339</link>
    <description>&lt;P&gt;Tried it and it also worked.Thank you for suggesting it.&lt;/P&gt;</description>
    <pubDate>Fri, 24 May 2024 10:11:39 GMT</pubDate>
    <dc:creator>IgorKaradzic</dc:creator>
    <dc:date>2024-05-24T10:11:39Z</dc:date>
    <item>
      <title>DAX formula for calculating % growth of profits over period of 5 years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-for-calculating-growth-of-profits-over-period-of-5/m-p/3934764#M153066</link>
      <description>&lt;P&gt;Hi guys, i need help with DAX calculating % growth of profits over period of, let's say, 5 years. As you will see in table below i also have different work sectors(currently 1 in table) and i want to show in table visual top 3 work sectors with fastest growing profits over a period of 5 years.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Work Sector&lt;/TD&gt;&lt;TD&gt;Year&lt;/TD&gt;&lt;TD&gt;Yearly net profit(€)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Acommodation and food services&lt;/TD&gt;&lt;TD&gt;2019&lt;/TD&gt;&lt;TD&gt;€ 294&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Acommodation and food services&lt;/TD&gt;&lt;TD&gt;2020&lt;/TD&gt;&lt;TD&gt;€ 315&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Acommodation and food services&lt;/TD&gt;&lt;TD&gt;2021&lt;/TD&gt;&lt;TD&gt;€ 339&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Acommodation and food services&lt;/TD&gt;&lt;TD&gt;2022&lt;/TD&gt;&lt;TD&gt;€ 392&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Acommodation and food services&lt;/TD&gt;&lt;TD&gt;2023&lt;/TD&gt;&lt;TD&gt;€ 440&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Acommodation and food services&lt;/TD&gt;&lt;TD&gt;2024&lt;/TD&gt;&lt;TD&gt;€ 503&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 21 May 2024 08:49:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-for-calculating-growth-of-profits-over-period-of-5/m-p/3934764#M153066</guid>
      <dc:creator>IgorKaradzic</dc:creator>
      <dc:date>2024-05-21T08:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula for calculating % growth of profits over period of 5 years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-for-calculating-growth-of-profits-over-period-of-5/m-p/3937389#M153120</link>
      <description>&lt;P&gt;Please try to use a Quick Measure first. It has Year Over Year examples.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Remember to add a calendar table to the data model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 00:37:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-for-calculating-growth-of-profits-over-period-of-5/m-p/3937389#M153120</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-05-22T00:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula for calculating % growth of profits over period of 5 years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-for-calculating-growth-of-profits-over-period-of-5/m-p/3937630#M153132</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="705515" data-lia-user-login="IgorKaradzic" class="lia-mention lia-mention-user"&gt;IgorKaradzic&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a separate year column as a slicer. Then create the following formula:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;result =
VAR sel_ =
    SELECTEDVALUE ( 'Date'[Year] )
VAR maxProfit =
    CALCULATE ( MAX ( 'Table'[Yearly net profit(€)] ), 'Table'[Year] = sel_ + 5 )
VAR minProfit =
    CALCULATE ( MAX ( 'Table'[Yearly net profit(€)] ), 'Table'[Year] = sel_ )
VAR per_ =
    DIVIDE ( maxProfit - minProfit, minProfit )
RETURN
    per_
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;1 =
IF ( RANKX ( ALL ( 'Table'[Work Sector] ), [result],, DESC ) &amp;lt;= 3, 1, 0 )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Adamk Kong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 02:38:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-for-calculating-growth-of-profits-over-period-of-5/m-p/3937630#M153132</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-22T02:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula for calculating % growth of profits over period of 5 years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-for-calculating-growth-of-profits-over-period-of-5/m-p/3946903#M153338</link>
      <description>&lt;P&gt;Thank you, it worked.&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 10:10:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-for-calculating-growth-of-profits-over-period-of-5/m-p/3946903#M153338</guid>
      <dc:creator>IgorKaradzic</dc:creator>
      <dc:date>2024-05-24T10:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula for calculating % growth of profits over period of 5 years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-for-calculating-growth-of-profits-over-period-of-5/m-p/3946912#M153339</link>
      <description>&lt;P&gt;Tried it and it also worked.Thank you for suggesting it.&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 10:11:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-for-calculating-growth-of-profits-over-period-of-5/m-p/3946912#M153339</guid>
      <dc:creator>IgorKaradzic</dc:creator>
      <dc:date>2024-05-24T10:11:39Z</dc:date>
    </item>
  </channel>
</rss>

