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
Anonymous
Not applicable

Comparing two previous months with data

Hi,

 

I would like to compare (calculate change in percentage) two previous months with data. Problem is that there is no data for every month. For example (please look the picture) in line 9 I would like to compare September and December, in line 5 I need to compare October and November and so on. What kind of dax formula I need to do this?

 

TuHa_1-1675081080382.png

 

BR,

TuHa

 

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , Try a measure like below, make sure you are using date table

 


new column =
var _max = maxx(allselected(Date), Date[Date]< min(Date[Date]))
return
calculate(Sum(Table[Values]), filter(allselected(Date), eomonth(Date[Date],0) = eomonth(_max,0)))

 

 

Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

 

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

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.