Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
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?
Solved! Go to Solution.
Hi @tlo11 ,
I make a sample pbix file(see attachment) for you, please check whether that is what you want.
Best Regards
Hi @tlo11 ,
I make a sample pbix file(see attachment) for you, please check whether that is what you want.
Best Regards
Let me know if you require This way, gif file attached
Proud to be a Super User!
Hey there, do you have the DAX code for this?
@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
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
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 22 | |
| 21 | |
| 21 | |
| 20 | |
| 13 |
| User | Count |
|---|---|
| 59 | |
| 53 | |
| 40 | |
| 31 | |
| 26 |