<?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: Percentage change Present  month and  previous month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentage-change-Present-month-and-previous-month/m-p/1192171#M18871</link>
    <description>&lt;LI-CODE lang="csharp"&gt;// Assumption is you have a custom-made calendar
// that holds the required pieces of time, among others,
// months. The Date field stores datetimes and is
// the key to the table. The table is also marked
// as the Date table in the model. Each indiviual month
// has a unique MonthId that runs from 1 to the number
// of months in the calendar (not just 12, we're talking
// about different months throughout years).

[Measure PM] =
IF( HASONEVALUE( Calendar[MonthId] ),

	CALCULATE(
		[Measure],
		DATEADD( Calendar[Date], -1, MONTH )
	)
)

[Measure MoM%] =
IF( HASONEVALUE( Calendar[MonthId] ),

	var __currentValue = [Measure]
	var __priorMonthValue = [Measure PM]
	var __delta = __currentValue - __priorMonthValue
	return
		divide(
			__delta,
			__priorMonthValue
		)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jun 2020 12:20:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-06-30T12:20:27Z</dc:date>
    <item>
      <title>Percentage change Present  month and  previous month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentage-change-Present-month-and-previous-month/m-p/1191078#M18827</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I want to calculte the previous month and present month sales . Also&amp;nbsp; i wanted to&amp;nbsp; calucate percentage change.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly provide me the steps or sample pbix&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ranganna Naik&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 06:25:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentage-change-Present-month-and-previous-month/m-p/1191078#M18827</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-30T06:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage change Present  month and  previous month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentage-change-Present-month-and-previous-month/m-p/1191581#M18835</link>
      <description>&lt;P&gt;HI&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a look at this article&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://powerbi.tips/2016/07/measures-month-to-month-percent-change/" target="_blank"&gt;https://powerbi.tips/2016/07/measures-month-to-month-percent-change/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh Nathani&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 08:58:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentage-change-Present-month-and-previous-month/m-p/1191581#M18835</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-30T08:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage change Present  month and  previous month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentage-change-Present-month-and-previous-month/m-p/1192171#M18871</link>
      <description>&lt;LI-CODE lang="csharp"&gt;// Assumption is you have a custom-made calendar
// that holds the required pieces of time, among others,
// months. The Date field stores datetimes and is
// the key to the table. The table is also marked
// as the Date table in the model. Each indiviual month
// has a unique MonthId that runs from 1 to the number
// of months in the calendar (not just 12, we're talking
// about different months throughout years).

[Measure PM] =
IF( HASONEVALUE( Calendar[MonthId] ),

	CALCULATE(
		[Measure],
		DATEADD( Calendar[Date], -1, MONTH )
	)
)

[Measure MoM%] =
IF( HASONEVALUE( Calendar[MonthId] ),

	var __currentValue = [Measure]
	var __priorMonthValue = [Measure PM]
	var __delta = __currentValue - __priorMonthValue
	return
		divide(
			__delta,
			__priorMonthValue
		)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 12:20:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentage-change-Present-month-and-previous-month/m-p/1192171#M18871</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-30T12:20:27Z</dc:date>
    </item>
  </channel>
</rss>

