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
aghoang12
New Member

[HELP] How do I calculate the difference from previous month!!

CurrentEndingMembership =
CALCULATE([Net Movement],
FILTER (ALLSELECTED('Effective Dates'[Effective Date]),
ISONORAFTER('Effective Dates'[Effective Date], MAX('Effective Dates'[Effective Date]), DESC)
))

[Net Movement] is a calculated measure

How do I calculate the previous month of CurrentEndingMembership and the difference of CurrentEndingMembership and PreviousMonthEndingMembership

Thank you

1 ACCEPTED SOLUTION
VijayP
Super User
Super User

@aghoang12 
This measure can help ! - 

Previous month = CALCULATE([CurrentEndingMembership],DATEADD(DateDim[Date],-1,MOMTH))
Try this and let me know. you can share your kudos as well!




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @aghoang12 

Based on @VijayP 's formula I made a simple sample for reference.

If your problem is solved, please mark his reply as the solution to close this thread, it will help other user who has a similar problem to solve it.

 

Best Regards,
Community Support Team _ Eason

 

VijayP
Super User
Super User

@aghoang12 
This measure can help ! - 

Previous month = CALCULATE([CurrentEndingMembership],DATEADD(DateDim[Date],-1,MOMTH))
Try this and let me know. you can share your kudos as well!




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

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.