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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
userkcc6712
Regular Visitor

To show Difference of value between months

Hi everyone. Searched the forum but cant find a suitable solution for my example...

Am trying to build a comparasion data to show variance of current month vs previous month data. 

I have 3 months data currently (June to Aug), Values column "LC_Amount".

 

Appreciate your help, if you need further info. Pls let me know, thanks in advance. 

 

userkcc6712_0-1631546974735.png

 

2 REPLIES 2
amitchandak
Super User
Super User

@userkcc6712 , You need to create a variance measure. You can use time intelligence for that

 

MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))
last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))

 

diff = [MTD Sales]-[last MTD Sales]

 

Power BI — Month on Month with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e
https://www.youtube.com/watch?v=6LUBbvcxtKA

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak , thanks for your respond. 

may i know why i encounter this error message, what went wrong? 

userkcc6712_0-1631582825278.png

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.