cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RashmitaR Member
Member

how to find the difference between values entered for current month minus previous month

Hi i have the following columns

 

  1. BLD_FTE(values)
  2. date
  3. month name 
  4. year
  5. cust_name

In my matrix i wish to display cust_name,month wise values also MOM.

I want to create a column named MOM which will save the difference between the values which belonged to the current month minus the values which were enetered for the previous month.

Please help with the same.

 

3 REPLIES 3
ankitpatira Super Contributor
Super Contributor

Re: how to find the difference between values entered for current month minus previous month

@RashmitaR Not sure if i understood you correctly but are you after a measure that gives you sum of all values in current month - sum of all values in previous month ?

RashmitaR Member
Member

Re: how to find the difference between values entered for current month minus previous month

@ankitpatira yes thats right.

Highlighted
Moderator v-yuezhe-msft
Moderator

Re: how to find the difference between values entered for current month minus previous month

Hi @RashmitaR,

Firstly, in your scenario, you need to have a calendar table, then create relationship using date columns between your current table and the calendar table.
1.PNG


Secondly, create a measure using the following formula.

MOM = SUM(Table1[BLD_FTE])-CALCULATE(SUM(Table1[BLD_FTE]),PREVIOUSMONTH(Table1[date]))


Thirdly, you are able to display the monthly change value of BLD_FTE in visual as shown in the following screenshot. For more details, please review the example in this attached PBIX file.
2.PNG


Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 398 members 3,643 guests
Please welcome our newest community members: