Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
lawada
Helper III
Helper III

how to calculate month over month for current month and month to date in previous year

im working on a report that shows kpis performance over : days-weeks-months-quarters-years

in order to add contex to my kpi im trying to add comparisons to periods such as : month over month and month to date 

the problem is when im showing the trend for monthly performace , the current month didnt end yet and if i want  to calculate month over month value doesnt make sense 

example of how the graph looks like :

x-axis: months ,  (assuming current month is April2021)

y-axis: total orders

lawada_0-1643276307654.png

month over month would be (180-280/280)*100=-35.7%

question1: how would i use this calculation for the current month if its not complete yet?

 

question 2 : how can i find month to date value for same month last year. assuming we are now in April2021 , how can i calculate month to date value for april2020 so i can compare it with the current value in this year?

1 ACCEPTED SOLUTION

MTD meaure = CALCULATE(TOTALMTD([users],Calender[Date]))
PY measure MTD = CALCULATE([mtd measure],
SAMEPERIODLASTYEAR(Calender[Date])
)

View solution in original post

6 REPLIES 6
lawada
Helper III
Helper III

the solutoin provided was not exactly what i was asking.  i found another solution to my issue

Hi @lawada 

 

Thanks for your reply! If it is convenient, could you please share your solution to this issue here and Accept is as the solution of this issue to help other users who encounter similar issue? Thanks in advance!

 

Best Regards,

Community Support Team _ Caiyun

MTD meaure = CALCULATE(TOTALMTD([users],Calender[Date]))
PY measure MTD = CALCULATE([mtd measure],
SAMEPERIODLASTYEAR(Calender[Date])
)

Hi @lawada 

 

Noted with many thanks!

 

Best Regards,

Community Support Team _ Caiyun

v-cazheng-msft
Community Support
Community Support

Hi @lawada 

 

May I know whether your issue has been resolved? If there is any post helps, then please consider Accept it as the solution. If you still have problems on it, please feel free to let us know. Thanks a lot!

 

Best Regards,

Community Support Team _ Caiyun

ValtteriN
Super User
Super User

Hi,

You can get these values using PREVIOUSMONTH and SAMEPERIODLASTYEAR.

MonthOverMonth =

var _m = SUM(MonthOver[Value])
var _lm = CALCULATE(SUM(MonthOver[Value]),PREVIOUSMONTH('MonthOver'[Date]))
return

divide(_m-_lm,_lm)

MonthOver LY = CALCULATE(MonthOver[MonthOverMonth],SAMEPERIODLASTYEAR('Calendar'[Date]))



I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!






Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.