<?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 Howcan i create a measure to show the profit percentage of last year to this year? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Howcan-i-create-a-measure-to-show-the-profit-percentage-of-last/m-p/3544731#M136294</link>
    <description>&lt;P&gt;Hi friends,&lt;BR /&gt;&lt;BR /&gt;I have created a matrix column for profits of previous years and months,i now need to show the profit grow percentage compared to the previous date,how can i do that ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 21 Nov 2023 12:47:10 GMT</pubDate>
    <dc:creator>Danteee</dc:creator>
    <dc:date>2023-11-21T12:47:10Z</dc:date>
    <item>
      <title>Howcan i create a measure to show the profit percentage of last year to this year?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Howcan-i-create-a-measure-to-show-the-profit-percentage-of-last/m-p/3544731#M136294</link>
      <description>&lt;P&gt;Hi friends,&lt;BR /&gt;&lt;BR /&gt;I have created a matrix column for profits of previous years and months,i now need to show the profit grow percentage compared to the previous date,how can i do that ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 12:47:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Howcan-i-create-a-measure-to-show-the-profit-percentage-of-last/m-p/3544731#M136294</guid>
      <dc:creator>Danteee</dc:creator>
      <dc:date>2023-11-21T12:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Howcan i create a measure to show the profit percentage of last year to this year?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Howcan-i-create-a-measure-to-show-the-profit-percentage-of-last/m-p/3544752#M136298</link>
      <description>&lt;P&gt;I assume you have the date table in your data model.&lt;BR /&gt;Use below measure for calculating Profit %:&lt;/P&gt;&lt;P&gt;ProfitGrowthPercentage =&lt;BR /&gt;DIVIDE(&lt;BR /&gt;YourData[Profit] - CALCULATE(SUM(YourData[Profit]),&lt;BR /&gt;FILTER(YourData, YourData[Date] = YourData[PreviousDate])),&lt;BR /&gt;CALCULATE(SUM(YourData[Profit]),&lt;BR /&gt;FILTER(YourData, YourData[Date] = YourData[PreviousDate]))&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;result of this formula will be a percentage representing the profit growth compared to the previous date. If the result is positive, it indicates an increase in profit, and if it's negative, it indicates a decrease&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If this helped, Subscribe AnalyticPulse on YouTube for future updates:&lt;BR /&gt;&lt;A href="https://www.youtube.com/@AnalyticPulse" target="_blank"&gt;https://www.youtube.com/@AnalyticPulse&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://instagram.com/analytic_pulse" target="_blank"&gt;https://instagram.com/analytic_pulse&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://analyticpulse.blogspot.com/" target="_blank"&gt;https://analyticpulse.blogspot.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;please subscribe to Youtube channel For fun facts:&lt;BR /&gt;&lt;A href="https://www.youtube.com/@CogniJourney" target="_blank"&gt;https://www.youtube.com/@CogniJourney&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 13:00:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Howcan-i-create-a-measure-to-show-the-profit-percentage-of-last/m-p/3544752#M136298</guid>
      <dc:creator>AnalyticPulse</dc:creator>
      <dc:date>2023-11-21T13:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Howcan i create a measure to show the profit percentage of last year to this year?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Howcan-i-create-a-measure-to-show-the-profit-percentage-of-last/m-p/3548382#M136468</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="567915" data-lia-user-login="Danteee" class="lia-mention lia-mention-user"&gt;Danteee&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can try the following methods&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;BR /&gt;Measure:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Previous date value = 
Var _Previousdate=MAXX(FILTER(ALL('Table'),[Date]&amp;lt;SELECTEDVALUE('Table'[Date])),[Date])
Return
CALCULATE(SUM('Table'[Profit]),FILTER(ALL('Table'),[Date]=_Previousdate))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure % = 
Var _divide=DIVIDE(SUM('Table'[Profit])-[Previous date value],SUM('Table'[Profit]))
Return
IF([Previous date value]=BLANK(),BLANK(),_divide)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is this the result you expect?&lt;/SPAN&gt; &lt;SPAN&gt;Please see the attached document.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;helps, then please consider&amp;nbsp;&lt;EM&gt;Accept it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 07:15:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Howcan-i-create-a-measure-to-show-the-profit-percentage-of-last/m-p/3548382#M136468</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2023-11-23T07:15:06Z</dc:date>
    </item>
  </channel>
</rss>

