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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Community Champion
Community Champion

@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 Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

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.