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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
tlo11
Frequent Visitor

Matrix Visual: Show Last Two Months and Overall Total

Dear all,

I am trying to solve the following problem with a matrix visual.

I do have a dataset with costs per month, but in the matrix visual, I only want to show the recent two months, and totals. However, the totals should be totalling over the whole year- but when I do filter the matrix to the recent two months, the totals update accordingly and only show the sum of the recent two months. Any chance this is possible?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @tlo11 ,

I make a sample pbix file(see attachment) for you, please check whether that is what you want.

recent two months.JPG

Best Regards

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @tlo11 ,

I make a sample pbix file(see attachment) for you, please check whether that is what you want.

recent two months.JPG

Best Regards

VijayP
Super User
Super User

@tlo11 

Let me know if you require This way, gif file attached

VijayP_0-1613136260876.png

 




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!


tlo11
Frequent Visitor

Hey there, do you have the DAX code for this?

amitchandak
Super User
Super User

@tlo11 , You can use relative date slicer or same option in visual level filter

https://docs.microsoft.com/en-us/power-bi/visuals/desktop-slicer-filter-date-range

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

Hey there,

thanks for your reply. While it does filter to the recent two months, the total will only show that of the months filtered and not the whole calender year

Helpful resources

Announcements
Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.