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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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 Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors